Interface PriorTreatmentReferenceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
PriorTreatmentReferenceSequence.SimpleHolder,RTPrescriptionSequence.Item
- Enclosing class:
- PriorTreatmentReferenceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Prior Treatment Reference Sequence" (see
PriorTreatmentReferenceSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault PriorTreatmentReferenceSequenceAdds a new Prior Treatment Reference Sequence (seePriorTreatmentReferenceSequence) with initial capacity 1 (seeensurePriorTreatmentReferenceSequence(int)) if it does not already exist.default PriorTreatmentReferenceSequenceensurePriorTreatmentReferenceSequence(int initialCapacity) Adds a new Prior Treatment Reference Sequence (seePriorTreatmentReferenceSequence) if it does not already exist.default PriorTreatmentReferenceSequencedefault PriorTreatmentReferenceSequencenewPriorTreatmentReferenceSequence(int initialCapacity) Adds a new Prior Treatment Reference Sequence.default voidRemoves the Prior Treatment Reference Sequence (seePriorTreatmentReferenceSequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
- Parameters:
attributes- An attributes object containing the Prior Treatment Reference Sequence (seePriorTreatmentReferenceSequence)- Returns:
- A wrapper object implementing the
PriorTreatmentReferenceSequence.Holderinterface.
-
builder
- Returns:
- a
PriorTreatmentReferenceSequence.Holder.Builderto create Prior Treatment Reference Sequence Items with a fluent API.
-
builder
static PriorTreatmentReferenceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePriorTreatmentReferenceSequence.Holder.Builder.- Returns:
- a
PriorTreatmentReferenceSequence.Holder.Builderto create Prior Treatment Reference Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPriorTreatmentReferenceSequence
- Returns:
- the Prior Treatment Reference Sequence (see
PriorTreatmentReferenceSequence)
-
newPriorTreatmentReferenceSequence
Adds a new Prior Treatment Reference Sequence. (seePriorTreatmentReferenceSequence)- Parameters:
initialCapacity- the initial capacity for the new Prior Treatment Reference Sequence
-
ensurePriorTreatmentReferenceSequence
Adds a new Prior Treatment Reference Sequence (seePriorTreatmentReferenceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Prior Treatment Reference Sequence is created.- Returns:
- Either the already existing Prior Treatment Reference Sequence (see
PriorTreatmentReferenceSequence) or a new one with capacityinitialCapacity.
-
ensurePriorTreatmentReferenceSequence
Adds a new Prior Treatment Reference Sequence (seePriorTreatmentReferenceSequence) with initial capacity 1 (seeensurePriorTreatmentReferenceSequence(int)) if it does not already exist.- Returns:
- Either the already existing Prior Treatment Reference Sequence (see
PriorTreatmentReferenceSequence) or a new one with capacity 1.
-
containsPriorTreatmentReferenceSequence
default boolean containsPriorTreatmentReferenceSequence()- Returns:
- Whether it contains the Prior Treatment Reference Sequence (see
PriorTreatmentReferenceSequence)
-
removePriorTreatmentReferenceSequence
default void removePriorTreatmentReferenceSequence()Removes the Prior Treatment Reference Sequence (seePriorTreatmentReferenceSequence
-