Interface SourceSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
RTBrachyApplicationSetupsModule
- All Known Implementing Classes:
RTBrachyApplicationSetupsModule.SimpleWrapper,RTPlanIOD
- Enclosing class:
- SourceSequence
public static interface SourceSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Source Sequence" (seeSourceSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSourceSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static SourceSequence.Holder.Builderbuilder()static SourceSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsSourceSequence()default SourceSequenceensureSourceSequence()Adds a new Source Sequence (seeSourceSequence) with initial capacity 1 (seeensureSourceSequence(int)) if it does not already exist.default SourceSequenceensureSourceSequence(int initialCapacity)Adds a new Source Sequence (seeSourceSequence) if it does not already exist.default SourceSequencegetSourceSequence()default SourceSequencenewSourceSequence(int initialCapacity)Adds a new Source Sequence.default voidremoveSourceSequence()Removes the Source Sequence (seeSourceSequencestatic SourceSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static SourceSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Source Sequence (seeSourceSequence)- Returns:
- a wrapper object implementing the
SourceSequence.Holderinterface.
-
builder
static SourceSequence.Holder.Builder builder()
- Returns:
- a
SourceSequence.Holder.Builderto create Source Sequence Items with a fluent API.
-
builder
static SourceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theSourceSequence.Holder.Builder.- Returns:
- a
SourceSequence.Holder.Builderto create Source Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSourceSequence
default SourceSequence getSourceSequence()
- Returns:
- the Source Sequence (see
SourceSequence)
-
newSourceSequence
default SourceSequence newSourceSequence(int initialCapacity)
Adds a new Source Sequence. (seeSourceSequence)- Parameters:
initialCapacity- the initial capacity for the new Source Sequence- Returns:
- the newly created SourceSequence.
-
ensureSourceSequence
default SourceSequence ensureSourceSequence(int initialCapacity)
Adds a new Source Sequence (seeSourceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Source Sequence is created.- Returns:
- either the already existing Source Sequence (see
SourceSequence) or a new one with capacityinitialCapacity.
-
ensureSourceSequence
default SourceSequence ensureSourceSequence()
Adds a new Source Sequence (seeSourceSequence) with initial capacity 1 (seeensureSourceSequence(int)) if it does not already exist.- Returns:
- either the already existing Source Sequence (see
SourceSequence) or a new one with capacity 1.
-
containsSourceSequence
default boolean containsSourceSequence()
- Returns:
- whether it contains the Source Sequence (see
SourceSequence)
-
removeSourceSequence
default void removeSourceSequence()
Removes the Source Sequence (seeSourceSequence
-
-