Interface AttributeOccurrenceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
AttributeOccurrenceSequence.SimpleHolder
- Enclosing class:
- AttributeOccurrenceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Attribute Occurrence Sequence" (see
AttributeOccurrenceSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault AttributeOccurrenceSequenceAdds a new Attribute Occurrence Sequence (seeAttributeOccurrenceSequence) with initial capacity 1 (seeensureAttributeOccurrenceSequence(int)) if it does not already exist.default AttributeOccurrenceSequenceensureAttributeOccurrenceSequence(int initialCapacity) Adds a new Attribute Occurrence Sequence (seeAttributeOccurrenceSequence) if it does not already exist.default AttributeOccurrenceSequencedefault AttributeOccurrenceSequencenewAttributeOccurrenceSequence(int initialCapacity) Adds a new Attribute Occurrence Sequence.default voidRemoves the Attribute Occurrence Sequence (seeAttributeOccurrenceSequencewrap(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 Attribute Occurrence Sequence (seeAttributeOccurrenceSequence)- Returns:
- A wrapper object implementing the
AttributeOccurrenceSequence.Holderinterface.
-
builder
- Returns:
- a
AttributeOccurrenceSequence.Holder.Builderto create Attribute Occurrence Sequence Items with a fluent API.
-
builder
- 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
- Returns:
- the Attribute Occurrence Sequence (see
AttributeOccurrenceSequence)
-
newAttributeOccurrenceSequence
Adds a new Attribute Occurrence Sequence. (seeAttributeOccurrenceSequence)- Parameters:
initialCapacity- the initial capacity for the new Attribute Occurrence Sequence
-
ensureAttributeOccurrenceSequence
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
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
-