Interface SegmentCharacteristicsSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RTSegmentAnnotationSequence.Item,SegmentCharacteristicsSequence.SimpleHolder
- Enclosing class:
- SegmentCharacteristicsSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Segment Characteristics Sequence" (see
SegmentCharacteristicsSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault SegmentCharacteristicsSequenceAdds a new Segment Characteristics Sequence (seeSegmentCharacteristicsSequence) with initial capacity 1 (seeensureSegmentCharacteristicsSequence(int)) if it does not already exist.default SegmentCharacteristicsSequenceensureSegmentCharacteristicsSequence(int initialCapacity) Adds a new Segment Characteristics Sequence (seeSegmentCharacteristicsSequence) if it does not already exist.default SegmentCharacteristicsSequencedefault SegmentCharacteristicsSequencenewSegmentCharacteristicsSequence(int initialCapacity) Adds a new Segment Characteristics Sequence.default voidRemoves the Segment Characteristics Sequence (seeSegmentCharacteristicsSequencewrap(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 Segment Characteristics Sequence (seeSegmentCharacteristicsSequence)- Returns:
- A wrapper object implementing the
SegmentCharacteristicsSequence.Holderinterface.
-
builder
- Returns:
- a
SegmentCharacteristicsSequence.Holder.Builderto create Segment Characteristics Sequence Items with a fluent API.
-
builder
static SegmentCharacteristicsSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theSegmentCharacteristicsSequence.Holder.Builder.- Returns:
- a
SegmentCharacteristicsSequence.Holder.Builderto create Segment Characteristics Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSegmentCharacteristicsSequence
- Returns:
- the Segment Characteristics Sequence (see
SegmentCharacteristicsSequence)
-
newSegmentCharacteristicsSequence
Adds a new Segment Characteristics Sequence. (seeSegmentCharacteristicsSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Characteristics Sequence
-
ensureSegmentCharacteristicsSequence
Adds a new Segment Characteristics Sequence (seeSegmentCharacteristicsSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Segment Characteristics Sequence is created.- Returns:
- Either the already existing Segment Characteristics Sequence (see
SegmentCharacteristicsSequence) or a new one with capacityinitialCapacity.
-
ensureSegmentCharacteristicsSequence
Adds a new Segment Characteristics Sequence (seeSegmentCharacteristicsSequence) with initial capacity 1 (seeensureSegmentCharacteristicsSequence(int)) if it does not already exist.- Returns:
- Either the already existing Segment Characteristics Sequence (see
SegmentCharacteristicsSequence) or a new one with capacity 1.
-
containsSegmentCharacteristicsSequence
default boolean containsSegmentCharacteristicsSequence()- Returns:
- Whether it contains the Segment Characteristics Sequence (see
SegmentCharacteristicsSequence)
-
removeSegmentCharacteristicsSequence
default void removeSegmentCharacteristicsSequence()Removes the Segment Characteristics Sequence (seeSegmentCharacteristicsSequence
-