Interface DisplacementReferenceLocationCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
DisplacementReferenceLocationCodeSequence.SimpleHolder,RTPatientPositionDisplacementSequence.Item
- Enclosing class:
- DisplacementReferenceLocationCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Displacement Reference Location Code Sequence" (see
DisplacementReferenceLocationCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Displacement Reference Location Code Sequence (seeDisplacementReferenceLocationCodeSequence) with initial capacity 1 (seeensureDisplacementReferenceLocationCodeSequence(int)) if it does not already exist.ensureDisplacementReferenceLocationCodeSequence(int initialCapacity) Adds a new Displacement Reference Location Code Sequence (seeDisplacementReferenceLocationCodeSequence) if it does not already exist.newDisplacementReferenceLocationCodeSequence(int initialCapacity) Adds a new Displacement Reference Location Code Sequence.default voidRemoves the Displacement Reference Location Code Sequence (seeDisplacementReferenceLocationCodeSequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
static DisplacementReferenceLocationCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- An attributes object containing the Displacement Reference Location Code Sequence (seeDisplacementReferenceLocationCodeSequence)- Returns:
- A wrapper object implementing the
DisplacementReferenceLocationCodeSequence.Holderinterface.
-
builder
- Returns:
- a
DisplacementReferenceLocationCodeSequence.Holder.Builderto create Displacement Reference Location Code Sequence Items with a fluent API.
-
builder
static DisplacementReferenceLocationCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theDisplacementReferenceLocationCodeSequence.Holder.Builder.- Returns:
- a
DisplacementReferenceLocationCodeSequence.Holder.Builderto create Displacement Reference Location Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDisplacementReferenceLocationCodeSequence
- Returns:
- the Displacement Reference Location Code Sequence (see
DisplacementReferenceLocationCodeSequence)
-
newDisplacementReferenceLocationCodeSequence
default DisplacementReferenceLocationCodeSequence newDisplacementReferenceLocationCodeSequence(int initialCapacity) Adds a new Displacement Reference Location Code Sequence. (seeDisplacementReferenceLocationCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Displacement Reference Location Code Sequence
-
ensureDisplacementReferenceLocationCodeSequence
default DisplacementReferenceLocationCodeSequence ensureDisplacementReferenceLocationCodeSequence(int initialCapacity) Adds a new Displacement Reference Location Code Sequence (seeDisplacementReferenceLocationCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Displacement Reference Location Code Sequence is created.- Returns:
- Either the already existing Displacement Reference Location Code Sequence (see
DisplacementReferenceLocationCodeSequence) or a new one with capacityinitialCapacity.
-
ensureDisplacementReferenceLocationCodeSequence
Adds a new Displacement Reference Location Code Sequence (seeDisplacementReferenceLocationCodeSequence) with initial capacity 1 (seeensureDisplacementReferenceLocationCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Displacement Reference Location Code Sequence (see
DisplacementReferenceLocationCodeSequence) or a new one with capacity 1.
-
containsDisplacementReferenceLocationCodeSequence
default boolean containsDisplacementReferenceLocationCodeSequence()- Returns:
- Whether it contains the Displacement Reference Location Code Sequence (see
DisplacementReferenceLocationCodeSequence)
-
removeDisplacementReferenceLocationCodeSequence
default void removeDisplacementReferenceLocationCodeSequence()Removes the Displacement Reference Location Code Sequence (seeDisplacementReferenceLocationCodeSequence
-