Interface AlternateValueSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
AlternateValueSequence.SimpleHolder,OverrideSequence.Item
- Enclosing class:
- AlternateValueSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Alternate Value Sequence" (see
AlternateValueSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault AlternateValueSequenceAdds a new Alternate Value Sequence (seeAlternateValueSequence) with initial capacity 1 (seeensureAlternateValueSequence(int)) if it does not already exist.default AlternateValueSequenceensureAlternateValueSequence(int initialCapacity) Adds a new Alternate Value Sequence (seeAlternateValueSequence) if it does not already exist.default AlternateValueSequencedefault AlternateValueSequencenewAlternateValueSequence(int initialCapacity) Adds a new Alternate Value Sequence.default voidRemoves the Alternate Value Sequence (seeAlternateValueSequencewrap(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 Alternate Value Sequence (seeAlternateValueSequence)- Returns:
- A wrapper object implementing the
AlternateValueSequence.Holderinterface.
-
builder
- Returns:
- a
AlternateValueSequence.Holder.Builderto create Alternate Value Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theAlternateValueSequence.Holder.Builder.- Returns:
- a
AlternateValueSequence.Holder.Builderto create Alternate Value Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getAlternateValueSequence
- Returns:
- the Alternate Value Sequence (see
AlternateValueSequence)
-
newAlternateValueSequence
Adds a new Alternate Value Sequence. (seeAlternateValueSequence)- Parameters:
initialCapacity- the initial capacity for the new Alternate Value Sequence
-
ensureAlternateValueSequence
Adds a new Alternate Value Sequence (seeAlternateValueSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Alternate Value Sequence is created.- Returns:
- Either the already existing Alternate Value Sequence (see
AlternateValueSequence) or a new one with capacityinitialCapacity.
-
ensureAlternateValueSequence
Adds a new Alternate Value Sequence (seeAlternateValueSequence) with initial capacity 1 (seeensureAlternateValueSequence(int)) if it does not already exist.- Returns:
- Either the already existing Alternate Value Sequence (see
AlternateValueSequence) or a new one with capacity 1.
-
containsAlternateValueSequence
default boolean containsAlternateValueSequence()- Returns:
- Whether it contains the Alternate Value Sequence (see
AlternateValueSequence)
-
removeAlternateValueSequence
default void removeAlternateValueSequence()Removes the Alternate Value Sequence (seeAlternateValueSequence
-