Interface StageCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
EnhancedUSImageModule,USImageModule
- All Known Implementing Classes:
EnhancedUSVolumeIOD,StageCodeSequence.SimpleHolder,USImageIOD,USMultiFrameImageIOD
- Enclosing class:
- StageCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Stage Code Sequence" (see
StageCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault StageCodeSequenceAdds a new Stage Code Sequence (seeStageCodeSequence) with initial capacity 1 (seeensureStageCodeSequence(int)) if it does not already exist.default StageCodeSequenceensureStageCodeSequence(int initialCapacity) Adds a new Stage Code Sequence (seeStageCodeSequence) if it does not already exist.default StageCodeSequencedefault StageCodeSequencenewStageCodeSequence(int initialCapacity) Adds a new Stage Code Sequence.default voidRemoves the Stage Code Sequence (seeStageCodeSequencestatic StageCodeSequence.Holderwrap(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 Stage Code Sequence (seeStageCodeSequence)- Returns:
- A wrapper object implementing the
StageCodeSequence.Holderinterface.
-
builder
- Returns:
- a
StageCodeSequence.Holder.Builderto create Stage Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theStageCodeSequence.Holder.Builder.- Returns:
- a
StageCodeSequence.Holder.Builderto create Stage Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getStageCodeSequence
- Returns:
- the Stage Code Sequence (see
StageCodeSequence)
-
newStageCodeSequence
Adds a new Stage Code Sequence. (seeStageCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Stage Code Sequence
-
ensureStageCodeSequence
Adds a new Stage Code Sequence (seeStageCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Stage Code Sequence is created.- Returns:
- Either the already existing Stage Code Sequence (see
StageCodeSequence) or a new one with capacityinitialCapacity.
-
ensureStageCodeSequence
Adds a new Stage Code Sequence (seeStageCodeSequence) with initial capacity 1 (seeensureStageCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Stage Code Sequence (see
StageCodeSequence) or a new one with capacity 1.
-
containsStageCodeSequence
default boolean containsStageCodeSequence()- Returns:
- Whether it contains the Stage Code Sequence (see
StageCodeSequence)
-
removeStageCodeSequence
default void removeStageCodeSequence()Removes the Stage Code Sequence (seeStageCodeSequence
-