Interface OmittedChannelSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
OmittedApplicationSetupSequence.Item,OmittedChannelSequence.SimpleHolder
- Enclosing class:
- OmittedChannelSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Omitted Channel Sequence" (see
OmittedChannelSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault OmittedChannelSequenceAdds a new Omitted Channel Sequence (seeOmittedChannelSequence) with initial capacity 1 (seeensureOmittedChannelSequence(int)) if it does not already exist.default OmittedChannelSequenceensureOmittedChannelSequence(int initialCapacity) Adds a new Omitted Channel Sequence (seeOmittedChannelSequence) if it does not already exist.default OmittedChannelSequencedefault OmittedChannelSequencenewOmittedChannelSequence(int initialCapacity) Adds a new Omitted Channel Sequence.default voidRemoves the Omitted Channel Sequence (seeOmittedChannelSequencewrap(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 Omitted Channel Sequence (seeOmittedChannelSequence)- Returns:
- A wrapper object implementing the
OmittedChannelSequence.Holderinterface.
-
builder
- Returns:
- a
OmittedChannelSequence.Holder.Builderto create Omitted Channel Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theOmittedChannelSequence.Holder.Builder.- Returns:
- a
OmittedChannelSequence.Holder.Builderto create Omitted Channel Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getOmittedChannelSequence
- Returns:
- the Omitted Channel Sequence (see
OmittedChannelSequence)
-
newOmittedChannelSequence
Adds a new Omitted Channel Sequence. (seeOmittedChannelSequence)- Parameters:
initialCapacity- the initial capacity for the new Omitted Channel Sequence
-
ensureOmittedChannelSequence
Adds a new Omitted Channel Sequence (seeOmittedChannelSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Omitted Channel Sequence is created.- Returns:
- Either the already existing Omitted Channel Sequence (see
OmittedChannelSequence) or a new one with capacityinitialCapacity.
-
ensureOmittedChannelSequence
Adds a new Omitted Channel Sequence (seeOmittedChannelSequence) with initial capacity 1 (seeensureOmittedChannelSequence(int)) if it does not already exist.- Returns:
- Either the already existing Omitted Channel Sequence (see
OmittedChannelSequence) or a new one with capacity 1.
-
containsOmittedChannelSequence
default boolean containsOmittedChannelSequence()- Returns:
- Whether it contains the Omitted Channel Sequence (see
OmittedChannelSequence)
-
removeOmittedChannelSequence
default void removeOmittedChannelSequence()Removes the Omitted Channel Sequence (seeOmittedChannelSequence
-