Interface SegmentReferenceSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
SegmentReferenceModule
- All Known Implementing Classes:
RTSegmentAnnotationIOD,SegmentReferenceModule.SimpleWrapper
- Enclosing class:
- SegmentReferenceSequence
public static interface SegmentReferenceSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Segment Reference Sequence" (seeSegmentReferenceSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSegmentReferenceSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static SegmentReferenceSequence.Holder.Builderbuilder()static SegmentReferenceSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsSegmentReferenceSequence()default SegmentReferenceSequenceensureSegmentReferenceSequence()Adds a new Segment Reference Sequence (seeSegmentReferenceSequence) with initial capacity 1 (seeensureSegmentReferenceSequence(int)) if it does not already exist.default SegmentReferenceSequenceensureSegmentReferenceSequence(int initialCapacity)Adds a new Segment Reference Sequence (seeSegmentReferenceSequence) if it does not already exist.default SegmentReferenceSequencegetSegmentReferenceSequence()default SegmentReferenceSequencenewSegmentReferenceSequence(int initialCapacity)Adds a new Segment Reference Sequence.default voidremoveSegmentReferenceSequence()Removes the Segment Reference Sequence (seeSegmentReferenceSequencestatic SegmentReferenceSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static SegmentReferenceSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Segment Reference Sequence (seeSegmentReferenceSequence)- Returns:
- a wrapper object implementing the
SegmentReferenceSequence.Holderinterface.
-
builder
static SegmentReferenceSequence.Holder.Builder builder()
- Returns:
- a
SegmentReferenceSequence.Holder.Builderto create Segment Reference Sequence Items with a fluent API.
-
builder
static SegmentReferenceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theSegmentReferenceSequence.Holder.Builder.- Returns:
- a
SegmentReferenceSequence.Holder.Builderto create Segment Reference Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSegmentReferenceSequence
default SegmentReferenceSequence getSegmentReferenceSequence()
- Returns:
- the Segment Reference Sequence (see
SegmentReferenceSequence)
-
newSegmentReferenceSequence
default SegmentReferenceSequence newSegmentReferenceSequence(int initialCapacity)
Adds a new Segment Reference Sequence. (seeSegmentReferenceSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Reference Sequence- Returns:
- the newly created SegmentReferenceSequence.
-
ensureSegmentReferenceSequence
default SegmentReferenceSequence ensureSegmentReferenceSequence(int initialCapacity)
Adds a new Segment Reference Sequence (seeSegmentReferenceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Segment Reference Sequence is created.- Returns:
- either the already existing Segment Reference Sequence (see
SegmentReferenceSequence) or a new one with capacityinitialCapacity.
-
ensureSegmentReferenceSequence
default SegmentReferenceSequence ensureSegmentReferenceSequence()
Adds a new Segment Reference Sequence (seeSegmentReferenceSequence) with initial capacity 1 (seeensureSegmentReferenceSequence(int)) if it does not already exist.- Returns:
- either the already existing Segment Reference Sequence (see
SegmentReferenceSequence) or a new one with capacity 1.
-
containsSegmentReferenceSequence
default boolean containsSegmentReferenceSequence()
- Returns:
- whether it contains the Segment Reference Sequence (see
SegmentReferenceSequence)
-
removeSegmentReferenceSequence
default void removeSegmentReferenceSequence()
Removes the Segment Reference Sequence (seeSegmentReferenceSequence
-
-