Interface ComponentTypesSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
ImplantAssemblyTemplateModule
- All Known Implementing Classes:
ComponentTypesSequence.SimpleHolder,ImplantAssemblyTemplateIOD
- Enclosing class:
- ComponentTypesSequence
public static interface ComponentTypesSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Component Types Sequence" (seeComponentTypesSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComponentTypesSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ComponentTypesSequence.Holder.Builderbuilder()static ComponentTypesSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsComponentTypesSequence()default ComponentTypesSequenceensureComponentTypesSequence()Adds 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 ComponentTypesSequencegetComponentTypesSequence()default ComponentTypesSequencenewComponentTypesSequence(int initialCapacity)Adds a new Component Types Sequence.default voidremoveComponentTypesSequence()Removes the Component Types Sequence (seeComponentTypesSequencestatic ComponentTypesSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ComponentTypesSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Component Types Sequence (seeComponentTypesSequence)- Returns:
- a wrapper object implementing the
ComponentTypesSequence.Holderinterface.
-
builder
static ComponentTypesSequence.Holder.Builder builder()
- Returns:
- a
ComponentTypesSequence.Holder.Builderto create Component Types Sequence Items with a fluent API.
-
builder
static ComponentTypesSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default ComponentTypesSequence getComponentTypesSequence()
- Returns:
- the Component Types Sequence (see
ComponentTypesSequence)
-
newComponentTypesSequence
default ComponentTypesSequence newComponentTypesSequence(int initialCapacity)
Adds a new Component Types Sequence. (seeComponentTypesSequence)- Parameters:
initialCapacity- the initial capacity for the new Component Types Sequence- Returns:
- the newly created ComponentTypesSequence.
-
ensureComponentTypesSequence
default ComponentTypesSequence ensureComponentTypesSequence(int initialCapacity)
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
default ComponentTypesSequence 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
-
-