Interface AttributeOccurrenceSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- Enclosing class:
- AttributeOccurrenceSequence
public static interface AttributeOccurrenceSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Attribute Occurrence Sequence" (seeAttributeOccurrenceSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAttributeOccurrenceSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static AttributeOccurrenceSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Attribute Occurrence Sequence (seeAttributeOccurrenceSequence)- Returns:
- a wrapper object implementing the
AttributeOccurrenceSequence.Holderinterface.
-
builder
static AttributeOccurrenceSequence.Holder.Builder builder()
- Returns:
- a
AttributeOccurrenceSequence.Holder.Builderto create Attribute Occurrence Sequence Items with a fluent API.
-
builder
static AttributeOccurrenceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theAttributeOccurrenceSequence.Holder.Builder.- Returns:
- a
AttributeOccurrenceSequence.Holder.Builderto create Attribute Occurrence Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getAttributeOccurrenceSequence
default AttributeOccurrenceSequence getAttributeOccurrenceSequence()
- Returns:
- the Attribute Occurrence Sequence (see
AttributeOccurrenceSequence)
-
newAttributeOccurrenceSequence
default AttributeOccurrenceSequence newAttributeOccurrenceSequence(int initialCapacity)
Adds a new Attribute Occurrence Sequence. (seeAttributeOccurrenceSequence)- Parameters:
initialCapacity- the initial capacity for the new Attribute Occurrence Sequence- Returns:
- the newly created AttributeOccurrenceSequence.
-
ensureAttributeOccurrenceSequence
default AttributeOccurrenceSequence ensureAttributeOccurrenceSequence(int initialCapacity)
Adds a new Attribute Occurrence Sequence (seeAttributeOccurrenceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Attribute Occurrence Sequence is created.- Returns:
- either the already existing Attribute Occurrence Sequence (see
AttributeOccurrenceSequence) or a new one with capacityinitialCapacity.
-
ensureAttributeOccurrenceSequence
default AttributeOccurrenceSequence ensureAttributeOccurrenceSequence()
Adds a new Attribute Occurrence Sequence (seeAttributeOccurrenceSequence) with initial capacity 1 (seeensureAttributeOccurrenceSequence(int)) if it does not already exist.- Returns:
- either the already existing Attribute Occurrence Sequence (see
AttributeOccurrenceSequence) or a new one with capacity 1.
-
containsAttributeOccurrenceSequence
default boolean containsAttributeOccurrenceSequence()
- Returns:
- whether it contains the Attribute Occurrence Sequence (see
AttributeOccurrenceSequence)
-
removeAttributeOccurrenceSequence
default void removeAttributeOccurrenceSequence()
Removes the Attribute Occurrence Sequence (seeAttributeOccurrenceSequence
-
-