Interface HangingProtocolUserIdentificationCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
HangingProtocolDefinitionModule
- All Known Implementing Classes:
HangingProtocolIOD,HangingProtocolUserIdentificationCodeSequence.SimpleHolder
- Enclosing class:
- HangingProtocolUserIdentificationCodeSequence
public static interface HangingProtocolUserIdentificationCodeSequence.Holder
extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Hanging Protocol User Identification Code Sequence" (see
HangingProtocolUserIdentificationCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Hanging Protocol User Identification Code Sequence (seeHangingProtocolUserIdentificationCodeSequence) with initial capacity 1 (seeensureHangingProtocolUserIdentificationCodeSequence(int)) if it does not already exist.ensureHangingProtocolUserIdentificationCodeSequence(int initialCapacity) Adds a new Hanging Protocol User Identification Code Sequence (seeHangingProtocolUserIdentificationCodeSequence) if it does not already exist.newHangingProtocolUserIdentificationCodeSequence(int initialCapacity) Adds a new Hanging Protocol User Identification Code Sequence.default voidRemoves the Hanging Protocol User Identification Code Sequence (seeHangingProtocolUserIdentificationCodeSequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
static HangingProtocolUserIdentificationCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- An attributes object containing the Hanging Protocol User Identification Code Sequence (seeHangingProtocolUserIdentificationCodeSequence)- Returns:
- A wrapper object implementing the
HangingProtocolUserIdentificationCodeSequence.Holderinterface.
-
builder
- Returns:
- a
HangingProtocolUserIdentificationCodeSequence.Holder.Builderto create Hanging Protocol User Identification Code Sequence Items with a fluent API.
-
builder
static HangingProtocolUserIdentificationCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theHangingProtocolUserIdentificationCodeSequence.Holder.Builder.- Returns:
- a
HangingProtocolUserIdentificationCodeSequence.Holder.Builderto create Hanging Protocol User Identification Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getHangingProtocolUserIdentificationCodeSequence
default HangingProtocolUserIdentificationCodeSequence getHangingProtocolUserIdentificationCodeSequence()- Returns:
- the Hanging Protocol User Identification Code Sequence (see
HangingProtocolUserIdentificationCodeSequence)
-
newHangingProtocolUserIdentificationCodeSequence
default HangingProtocolUserIdentificationCodeSequence newHangingProtocolUserIdentificationCodeSequence(int initialCapacity) Adds a new Hanging Protocol User Identification Code Sequence. (seeHangingProtocolUserIdentificationCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Hanging Protocol User Identification Code Sequence
-
ensureHangingProtocolUserIdentificationCodeSequence
default HangingProtocolUserIdentificationCodeSequence ensureHangingProtocolUserIdentificationCodeSequence(int initialCapacity) Adds a new Hanging Protocol User Identification Code Sequence (seeHangingProtocolUserIdentificationCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Hanging Protocol User Identification Code Sequence is created.- Returns:
- Either the already existing Hanging Protocol User Identification Code Sequence (see
HangingProtocolUserIdentificationCodeSequence) or a new one with capacityinitialCapacity.
-
ensureHangingProtocolUserIdentificationCodeSequence
default HangingProtocolUserIdentificationCodeSequence ensureHangingProtocolUserIdentificationCodeSequence()Adds a new Hanging Protocol User Identification Code Sequence (seeHangingProtocolUserIdentificationCodeSequence) with initial capacity 1 (seeensureHangingProtocolUserIdentificationCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Hanging Protocol User Identification Code Sequence (see
HangingProtocolUserIdentificationCodeSequence) or a new one with capacity 1.
-
containsHangingProtocolUserIdentificationCodeSequence
default boolean containsHangingProtocolUserIdentificationCodeSequence()- Returns:
- Whether it contains the Hanging Protocol User Identification Code Sequence (see
HangingProtocolUserIdentificationCodeSequence)
-
removeHangingProtocolUserIdentificationCodeSequence
default void removeHangingProtocolUserIdentificationCodeSequence()Removes the Hanging Protocol User Identification Code Sequence (seeHangingProtocolUserIdentificationCodeSequence
-