Interface OtherMediaAvailableSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
OtherMediaAvailableSequence.SimpleHolder,PrinterConfigurationSequence.Item
- Enclosing class:
- OtherMediaAvailableSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Other Media Available Sequence" (see
OtherMediaAvailableSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault OtherMediaAvailableSequenceAdds a new Other Media Available Sequence (seeOtherMediaAvailableSequence) with initial capacity 1 (seeensureOtherMediaAvailableSequence(int)) if it does not already exist.default OtherMediaAvailableSequenceensureOtherMediaAvailableSequence(int initialCapacity) Adds a new Other Media Available Sequence (seeOtherMediaAvailableSequence) if it does not already exist.default OtherMediaAvailableSequencedefault OtherMediaAvailableSequencenewOtherMediaAvailableSequence(int initialCapacity) Adds a new Other Media Available Sequence.default voidRemoves the Other Media Available Sequence (seeOtherMediaAvailableSequencewrap(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 Other Media Available Sequence (seeOtherMediaAvailableSequence)- Returns:
- A wrapper object implementing the
OtherMediaAvailableSequence.Holderinterface.
-
builder
- Returns:
- a
OtherMediaAvailableSequence.Holder.Builderto create Other Media Available Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theOtherMediaAvailableSequence.Holder.Builder.- Returns:
- a
OtherMediaAvailableSequence.Holder.Builderto create Other Media Available Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getOtherMediaAvailableSequence
- Returns:
- the Other Media Available Sequence (see
OtherMediaAvailableSequence)
-
newOtherMediaAvailableSequence
Adds a new Other Media Available Sequence. (seeOtherMediaAvailableSequence)- Parameters:
initialCapacity- the initial capacity for the new Other Media Available Sequence
-
ensureOtherMediaAvailableSequence
Adds a new Other Media Available Sequence (seeOtherMediaAvailableSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Other Media Available Sequence is created.- Returns:
- Either the already existing Other Media Available Sequence (see
OtherMediaAvailableSequence) or a new one with capacityinitialCapacity.
-
ensureOtherMediaAvailableSequence
Adds a new Other Media Available Sequence (seeOtherMediaAvailableSequence) with initial capacity 1 (seeensureOtherMediaAvailableSequence(int)) if it does not already exist.- Returns:
- Either the already existing Other Media Available Sequence (see
OtherMediaAvailableSequence) or a new one with capacity 1.
-
containsOtherMediaAvailableSequence
default boolean containsOtherMediaAvailableSequence()- Returns:
- Whether it contains the Other Media Available Sequence (see
OtherMediaAvailableSequence)
-
removeOtherMediaAvailableSequence
default void removeOtherMediaAvailableSequence()Removes the Other Media Available Sequence (seeOtherMediaAvailableSequence
-