Interface PatientTreatmentPreparationMethodCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
RTTreatmentPreparationModule
- All Known Implementing Classes:
PatientTreatmentPreparationMethodCodeSequence.SimpleHolder,RTTreatmentPreparationIOD
- Enclosing class:
- PatientTreatmentPreparationMethodCodeSequence
public static interface PatientTreatmentPreparationMethodCodeSequence.Holder
extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Patient Treatment Preparation Method Code Sequence" (see
PatientTreatmentPreparationMethodCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Patient Treatment Preparation Method Code Sequence (seePatientTreatmentPreparationMethodCodeSequence) with initial capacity 1 (seeensurePatientTreatmentPreparationMethodCodeSequence(int)) if it does not already exist.ensurePatientTreatmentPreparationMethodCodeSequence(int initialCapacity) Adds a new Patient Treatment Preparation Method Code Sequence (seePatientTreatmentPreparationMethodCodeSequence) if it does not already exist.newPatientTreatmentPreparationMethodCodeSequence(int initialCapacity) Adds a new Patient Treatment Preparation Method Code Sequence.default voidRemoves the Patient Treatment Preparation Method Code Sequence (seePatientTreatmentPreparationMethodCodeSequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
static PatientTreatmentPreparationMethodCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- An attributes object containing the Patient Treatment Preparation Method Code Sequence (seePatientTreatmentPreparationMethodCodeSequence)- Returns:
- A wrapper object implementing the
PatientTreatmentPreparationMethodCodeSequence.Holderinterface.
-
builder
- Returns:
- a
PatientTreatmentPreparationMethodCodeSequence.Holder.Builderto create Patient Treatment Preparation Method Code Sequence Items with a fluent API.
-
builder
static PatientTreatmentPreparationMethodCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePatientTreatmentPreparationMethodCodeSequence.Holder.Builder.- Returns:
- a
PatientTreatmentPreparationMethodCodeSequence.Holder.Builderto create Patient Treatment Preparation Method Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPatientTreatmentPreparationMethodCodeSequence
default PatientTreatmentPreparationMethodCodeSequence getPatientTreatmentPreparationMethodCodeSequence()- Returns:
- the Patient Treatment Preparation Method Code Sequence (see
PatientTreatmentPreparationMethodCodeSequence)
-
newPatientTreatmentPreparationMethodCodeSequence
default PatientTreatmentPreparationMethodCodeSequence newPatientTreatmentPreparationMethodCodeSequence(int initialCapacity) Adds a new Patient Treatment Preparation Method Code Sequence. (seePatientTreatmentPreparationMethodCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Patient Treatment Preparation Method Code Sequence
-
ensurePatientTreatmentPreparationMethodCodeSequence
default PatientTreatmentPreparationMethodCodeSequence ensurePatientTreatmentPreparationMethodCodeSequence(int initialCapacity) Adds a new Patient Treatment Preparation Method Code Sequence (seePatientTreatmentPreparationMethodCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Patient Treatment Preparation Method Code Sequence is created.- Returns:
- Either the already existing Patient Treatment Preparation Method Code Sequence (see
PatientTreatmentPreparationMethodCodeSequence) or a new one with capacityinitialCapacity.
-
ensurePatientTreatmentPreparationMethodCodeSequence
default PatientTreatmentPreparationMethodCodeSequence ensurePatientTreatmentPreparationMethodCodeSequence()Adds a new Patient Treatment Preparation Method Code Sequence (seePatientTreatmentPreparationMethodCodeSequence) with initial capacity 1 (seeensurePatientTreatmentPreparationMethodCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Patient Treatment Preparation Method Code Sequence (see
PatientTreatmentPreparationMethodCodeSequence) or a new one with capacity 1.
-
containsPatientTreatmentPreparationMethodCodeSequence
default boolean containsPatientTreatmentPreparationMethodCodeSequence()- Returns:
- Whether it contains the Patient Treatment Preparation Method Code Sequence (see
PatientTreatmentPreparationMethodCodeSequence)
-
removePatientTreatmentPreparationMethodCodeSequence
default void removePatientTreatmentPreparationMethodCodeSequence()Removes the Patient Treatment Preparation Method Code Sequence (seePatientTreatmentPreparationMethodCodeSequence
-