Interface OpticalPathIdentificationSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
OpticalPathIdentificationSequence.SimpleHolder
- Enclosing class:
- OpticalPathIdentificationSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Optical Path Identification Sequence" (see
OpticalPathIdentificationSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Optical Path Identification Sequence (seeOpticalPathIdentificationSequence) with initial capacity 1 (seeensureOpticalPathIdentificationSequence(int)) if it does not already exist.ensureOpticalPathIdentificationSequence(int initialCapacity) Adds a new Optical Path Identification Sequence (seeOpticalPathIdentificationSequence) if it does not already exist.newOpticalPathIdentificationSequence(int initialCapacity) Adds a new Optical Path Identification Sequence.default voidRemoves the Optical Path Identification Sequence (seeOpticalPathIdentificationSequencewrap(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 Optical Path Identification Sequence (seeOpticalPathIdentificationSequence)- Returns:
- A wrapper object implementing the
OpticalPathIdentificationSequence.Holderinterface.
-
builder
- Returns:
- a
OpticalPathIdentificationSequence.Holder.Builderto create Optical Path Identification Sequence Items with a fluent API.
-
builder
static OpticalPathIdentificationSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theOpticalPathIdentificationSequence.Holder.Builder.- Returns:
- a
OpticalPathIdentificationSequence.Holder.Builderto create Optical Path Identification Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getOpticalPathIdentificationSequence
- Returns:
- the Optical Path Identification Sequence (see
OpticalPathIdentificationSequence)
-
newOpticalPathIdentificationSequence
Adds a new Optical Path Identification Sequence. (seeOpticalPathIdentificationSequence)- Parameters:
initialCapacity- the initial capacity for the new Optical Path Identification Sequence
-
ensureOpticalPathIdentificationSequence
default OpticalPathIdentificationSequence ensureOpticalPathIdentificationSequence(int initialCapacity) Adds a new Optical Path Identification Sequence (seeOpticalPathIdentificationSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Optical Path Identification Sequence is created.- Returns:
- Either the already existing Optical Path Identification Sequence (see
OpticalPathIdentificationSequence) or a new one with capacityinitialCapacity.
-
ensureOpticalPathIdentificationSequence
Adds a new Optical Path Identification Sequence (seeOpticalPathIdentificationSequence) with initial capacity 1 (seeensureOpticalPathIdentificationSequence(int)) if it does not already exist.- Returns:
- Either the already existing Optical Path Identification Sequence (see
OpticalPathIdentificationSequence) or a new one with capacity 1.
-
containsOpticalPathIdentificationSequence
default boolean containsOpticalPathIdentificationSequence()- Returns:
- Whether it contains the Optical Path Identification Sequence (see
OpticalPathIdentificationSequence)
-
removeOpticalPathIdentificationSequence
default void removeOpticalPathIdentificationSequence()Removes the Optical Path Identification Sequence (seeOpticalPathIdentificationSequence
-