Interface ComponentTypesSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
ImplantAssemblyTemplateModule
- All Known Implementing Classes:
ImplantAssemblyTemplateIOD
- Enclosing class:
- ComponentTypesSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Component Types Sequence" (see
ComponentTypesSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ComponentTypesSequenceAdds a new Component Types Sequence (seeComponentTypesSequence) with initial capacity 1 (seeensureComponentTypesSequence(int)) if it does not already exist.default ComponentTypesSequenceensureComponentTypesSequence(int initialCapacity) Adds a new Component Types Sequence (seeComponentTypesSequence) if it does not already exist.default ComponentTypesSequencedefault ComponentTypesSequencenewComponentTypesSequence(int initialCapacity) Adds a new Component Types Sequence.default voidRemoves the Component Types Sequence (seeComponentTypesSequencewrap(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 Types Sequence (seeComponentTypesSequence)- Returns:
- A wrapper object implementing the
ComponentTypesSequence.Holderinterface.
-
builder
- Returns:
- a
ComponentTypesSequence.Holder.Builderto create Component Types Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theComponentTypesSequence.Holder.Builder.- Returns:
- a
ComponentTypesSequence.Holder.Builderto create Component Types Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getComponentTypesSequence
- Returns:
- the Component Types Sequence (see
ComponentTypesSequence)
-
newComponentTypesSequence
Adds a new Component Types Sequence. (seeComponentTypesSequence)- Parameters:
initialCapacity- the initial capacity for the new Component Types Sequence
-
ensureComponentTypesSequence
Adds a new Component Types Sequence (seeComponentTypesSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Component Types Sequence is created.- Returns:
- Either the already existing Component Types Sequence (see
ComponentTypesSequence) or a new one with capacityinitialCapacity.
-
ensureComponentTypesSequence
Adds a new Component Types Sequence (seeComponentTypesSequence) with initial capacity 1 (seeensureComponentTypesSequence(int)) if it does not already exist.- Returns:
- Either the already existing Component Types Sequence (see
ComponentTypesSequence) or a new one with capacity 1.
-
containsComponentTypesSequence
default boolean containsComponentTypesSequence()- Returns:
- Whether it contains the Component Types Sequence (see
ComponentTypesSequence)
-
removeComponentTypesSequence
default void removeComponentTypesSequence()Removes the Component Types Sequence (seeComponentTypesSequence
-