Interface PatientSupportDisplacementSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
PatientSupportDisplacementSequence.SimpleHolder,RTPatientPositionDisplacementSequence.Item
- Enclosing class:
- PatientSupportDisplacementSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Patient Support Displacement Sequence" (see
PatientSupportDisplacementSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Patient Support Displacement Sequence (seePatientSupportDisplacementSequence) with initial capacity 1 (seeensurePatientSupportDisplacementSequence(int)) if it does not already exist.ensurePatientSupportDisplacementSequence(int initialCapacity) Adds a new Patient Support Displacement Sequence (seePatientSupportDisplacementSequence) if it does not already exist.newPatientSupportDisplacementSequence(int initialCapacity) Adds a new Patient Support Displacement Sequence.default voidRemoves the Patient Support Displacement Sequence (seePatientSupportDisplacementSequencewrap(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 Patient Support Displacement Sequence (seePatientSupportDisplacementSequence)- Returns:
- A wrapper object implementing the
PatientSupportDisplacementSequence.Holderinterface.
-
builder
- Returns:
- a
PatientSupportDisplacementSequence.Holder.Builderto create Patient Support Displacement Sequence Items with a fluent API.
-
builder
static PatientSupportDisplacementSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePatientSupportDisplacementSequence.Holder.Builder.- Returns:
- a
PatientSupportDisplacementSequence.Holder.Builderto create Patient Support Displacement Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPatientSupportDisplacementSequence
- Returns:
- the Patient Support Displacement Sequence (see
PatientSupportDisplacementSequence)
-
newPatientSupportDisplacementSequence
default PatientSupportDisplacementSequence newPatientSupportDisplacementSequence(int initialCapacity) Adds a new Patient Support Displacement Sequence. (seePatientSupportDisplacementSequence)- Parameters:
initialCapacity- the initial capacity for the new Patient Support Displacement Sequence
-
ensurePatientSupportDisplacementSequence
default PatientSupportDisplacementSequence ensurePatientSupportDisplacementSequence(int initialCapacity) Adds a new Patient Support Displacement Sequence (seePatientSupportDisplacementSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Patient Support Displacement Sequence is created.- Returns:
- Either the already existing Patient Support Displacement Sequence (see
PatientSupportDisplacementSequence) or a new one with capacityinitialCapacity.
-
ensurePatientSupportDisplacementSequence
Adds a new Patient Support Displacement Sequence (seePatientSupportDisplacementSequence) with initial capacity 1 (seeensurePatientSupportDisplacementSequence(int)) if it does not already exist.- Returns:
- Either the already existing Patient Support Displacement Sequence (see
PatientSupportDisplacementSequence) or a new one with capacity 1.
-
containsPatientSupportDisplacementSequence
default boolean containsPatientSupportDisplacementSequence()- Returns:
- Whether it contains the Patient Support Displacement Sequence (see
PatientSupportDisplacementSequence)
-
removePatientSupportDisplacementSequence
default void removePatientSupportDisplacementSequence()Removes the Patient Support Displacement Sequence (seePatientSupportDisplacementSequence
-