Interface MediaInstalledSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
MediaInstalledSequence.SimpleHolder,PrinterConfigurationSequence.Item
- Enclosing class:
- MediaInstalledSequence
public static interface MediaInstalledSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Media Installed Sequence" (seeMediaInstalledSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMediaInstalledSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static MediaInstalledSequence.Holder.Builderbuilder()static MediaInstalledSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsMediaInstalledSequence()default MediaInstalledSequenceensureMediaInstalledSequence()Adds a new Media Installed Sequence (seeMediaInstalledSequence) with initial capacity 1 (seeensureMediaInstalledSequence(int)) if it does not already exist.default MediaInstalledSequenceensureMediaInstalledSequence(int initialCapacity)Adds a new Media Installed Sequence (seeMediaInstalledSequence) if it does not already exist.default MediaInstalledSequencegetMediaInstalledSequence()default MediaInstalledSequencenewMediaInstalledSequence(int initialCapacity)Adds a new Media Installed Sequence.default voidremoveMediaInstalledSequence()Removes the Media Installed Sequence (seeMediaInstalledSequencestatic MediaInstalledSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static MediaInstalledSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Media Installed Sequence (seeMediaInstalledSequence)- Returns:
- a wrapper object implementing the
MediaInstalledSequence.Holderinterface.
-
builder
static MediaInstalledSequence.Holder.Builder builder()
- Returns:
- a
MediaInstalledSequence.Holder.Builderto create Media Installed Sequence Items with a fluent API.
-
builder
static MediaInstalledSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theMediaInstalledSequence.Holder.Builder.- Returns:
- a
MediaInstalledSequence.Holder.Builderto create Media Installed Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getMediaInstalledSequence
default MediaInstalledSequence getMediaInstalledSequence()
- Returns:
- the Media Installed Sequence (see
MediaInstalledSequence)
-
newMediaInstalledSequence
default MediaInstalledSequence newMediaInstalledSequence(int initialCapacity)
Adds a new Media Installed Sequence. (seeMediaInstalledSequence)- Parameters:
initialCapacity- the initial capacity for the new Media Installed Sequence- Returns:
- the newly created MediaInstalledSequence.
-
ensureMediaInstalledSequence
default MediaInstalledSequence ensureMediaInstalledSequence(int initialCapacity)
Adds a new Media Installed Sequence (seeMediaInstalledSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Media Installed Sequence is created.- Returns:
- either the already existing Media Installed Sequence (see
MediaInstalledSequence) or a new one with capacityinitialCapacity.
-
ensureMediaInstalledSequence
default MediaInstalledSequence ensureMediaInstalledSequence()
Adds a new Media Installed Sequence (seeMediaInstalledSequence) with initial capacity 1 (seeensureMediaInstalledSequence(int)) if it does not already exist.- Returns:
- either the already existing Media Installed Sequence (see
MediaInstalledSequence) or a new one with capacity 1.
-
containsMediaInstalledSequence
default boolean containsMediaInstalledSequence()
- Returns:
- whether it contains the Media Installed Sequence (see
MediaInstalledSequence)
-
removeMediaInstalledSequence
default void removeMediaInstalledSequence()
Removes the Media Installed Sequence (seeMediaInstalledSequence
-
-