Interface InterlockSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
RTRadiationRecordCommonModule
- All Known Implementing Classes:
CArmPhotonElectronRadiationRecordIOD,InterlockSequence.SimpleHolder,RoboticArmRadiationRecordIOD,RTRadiationSalvageRecordIOD,TomotherapeuticRadiationRecordIOD,TreatmentSessionBeamSequence.Item
- Enclosing class:
- InterlockSequence
public static interface InterlockSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Interlock Sequence" (seeInterlockSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInterlockSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static InterlockSequence.Holder.Builderbuilder()static InterlockSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsInterlockSequence()default InterlockSequenceensureInterlockSequence()Adds a new Interlock Sequence (seeInterlockSequence) with initial capacity 1 (seeensureInterlockSequence(int)) if it does not already exist.default InterlockSequenceensureInterlockSequence(int initialCapacity)Adds a new Interlock Sequence (seeInterlockSequence) if it does not already exist.default InterlockSequencegetInterlockSequence()default InterlockSequencenewInterlockSequence(int initialCapacity)Adds a new Interlock Sequence.default voidremoveInterlockSequence()Removes the Interlock Sequence (seeInterlockSequencestatic InterlockSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static InterlockSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Interlock Sequence (seeInterlockSequence)- Returns:
- a wrapper object implementing the
InterlockSequence.Holderinterface.
-
builder
static InterlockSequence.Holder.Builder builder()
- Returns:
- a
InterlockSequence.Holder.Builderto create Interlock Sequence Items with a fluent API.
-
builder
static InterlockSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theInterlockSequence.Holder.Builder.- Returns:
- a
InterlockSequence.Holder.Builderto create Interlock Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getInterlockSequence
default InterlockSequence getInterlockSequence()
- Returns:
- the Interlock Sequence (see
InterlockSequence)
-
newInterlockSequence
default InterlockSequence newInterlockSequence(int initialCapacity)
Adds a new Interlock Sequence. (seeInterlockSequence)- Parameters:
initialCapacity- the initial capacity for the new Interlock Sequence- Returns:
- the newly created InterlockSequence.
-
ensureInterlockSequence
default InterlockSequence ensureInterlockSequence(int initialCapacity)
Adds a new Interlock Sequence (seeInterlockSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Interlock Sequence is created.- Returns:
- either the already existing Interlock Sequence (see
InterlockSequence) or a new one with capacityinitialCapacity.
-
ensureInterlockSequence
default InterlockSequence ensureInterlockSequence()
Adds a new Interlock Sequence (seeInterlockSequence) with initial capacity 1 (seeensureInterlockSequence(int)) if it does not already exist.- Returns:
- either the already existing Interlock Sequence (see
InterlockSequence) or a new one with capacity 1.
-
containsInterlockSequence
default boolean containsInterlockSequence()
- Returns:
- whether it contains the Interlock Sequence (see
InterlockSequence)
-
removeInterlockSequence
default void removeInterlockSequence()
Removes the Interlock Sequence (seeInterlockSequence
-
-