Interface ComponentAssemblySequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
ImplantAssemblyTemplateModule
- All Known Implementing Classes:
ComponentAssemblySequence.SimpleHolder,ImplantAssemblyTemplateIOD
- Enclosing class:
- ComponentAssemblySequence
A class implementing this interface can hold attributes which contain the DICOM tag "Component Assembly Sequence" (see
ComponentAssemblySequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ComponentAssemblySequenceAdds a new Component Assembly Sequence (seeComponentAssemblySequence) with initial capacity 1 (seeensureComponentAssemblySequence(int)) if it does not already exist.default ComponentAssemblySequenceensureComponentAssemblySequence(int initialCapacity) Adds a new Component Assembly Sequence (seeComponentAssemblySequence) if it does not already exist.default ComponentAssemblySequencedefault ComponentAssemblySequencenewComponentAssemblySequence(int initialCapacity) Adds a new Component Assembly Sequence.default voidRemoves the Component Assembly Sequence (seeComponentAssemblySequencewrap(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 Component Assembly Sequence (seeComponentAssemblySequence)- Returns:
- A wrapper object implementing the
ComponentAssemblySequence.Holderinterface.
-
builder
- Returns:
- a
ComponentAssemblySequence.Holder.Builderto create Component Assembly Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theComponentAssemblySequence.Holder.Builder.- Returns:
- a
ComponentAssemblySequence.Holder.Builderto create Component Assembly Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getComponentAssemblySequence
- Returns:
- the Component Assembly Sequence (see
ComponentAssemblySequence)
-
newComponentAssemblySequence
Adds a new Component Assembly Sequence. (seeComponentAssemblySequence)- Parameters:
initialCapacity- the initial capacity for the new Component Assembly Sequence
-
ensureComponentAssemblySequence
Adds a new Component Assembly Sequence (seeComponentAssemblySequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Component Assembly Sequence is created.- Returns:
- Either the already existing Component Assembly Sequence (see
ComponentAssemblySequence) or a new one with capacityinitialCapacity.
-
ensureComponentAssemblySequence
Adds a new Component Assembly Sequence (seeComponentAssemblySequence) with initial capacity 1 (seeensureComponentAssemblySequence(int)) if it does not already exist.- Returns:
- Either the already existing Component Assembly Sequence (see
ComponentAssemblySequence) or a new one with capacity 1.
-
containsComponentAssemblySequence
default boolean containsComponentAssemblySequence()- Returns:
- Whether it contains the Component Assembly Sequence (see
ComponentAssemblySequence)
-
removeComponentAssemblySequence
default void removeComponentAssemblySequence()Removes the Component Assembly Sequence (seeComponentAssemblySequence
-