Interface StorageProtocolElementSpecificationSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
DefinedStorageModule
- All Known Implementing Classes:
CTDefinedProcedureProtocolIOD,StorageProtocolElementSpecificationSequence.SimpleHolder,XADefinedProcedureProtocolIOD
- Enclosing class:
- StorageProtocolElementSpecificationSequence
public static interface StorageProtocolElementSpecificationSequence.Holder
extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Storage Protocol Element Specification Sequence" (see
StorageProtocolElementSpecificationSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Storage Protocol Element Specification Sequence (seeStorageProtocolElementSpecificationSequence) with initial capacity 1 (seeensureStorageProtocolElementSpecificationSequence(int)) if it does not already exist.ensureStorageProtocolElementSpecificationSequence(int initialCapacity) Adds a new Storage Protocol Element Specification Sequence (seeStorageProtocolElementSpecificationSequence) if it does not already exist.newStorageProtocolElementSpecificationSequence(int initialCapacity) Adds a new Storage Protocol Element Specification Sequence.default voidRemoves the Storage Protocol Element Specification Sequence (seeStorageProtocolElementSpecificationSequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
static StorageProtocolElementSpecificationSequence.Holder wrap(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- An attributes object containing the Storage Protocol Element Specification Sequence (seeStorageProtocolElementSpecificationSequence)- Returns:
- A wrapper object implementing the
StorageProtocolElementSpecificationSequence.Holderinterface.
-
builder
- Returns:
- a
StorageProtocolElementSpecificationSequence.Holder.Builderto create Storage Protocol Element Specification Sequence Items with a fluent API.
-
builder
static StorageProtocolElementSpecificationSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theStorageProtocolElementSpecificationSequence.Holder.Builder.- Returns:
- a
StorageProtocolElementSpecificationSequence.Holder.Builderto create Storage Protocol Element Specification Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getStorageProtocolElementSpecificationSequence
default StorageProtocolElementSpecificationSequence getStorageProtocolElementSpecificationSequence()- Returns:
- the Storage Protocol Element Specification Sequence (see
StorageProtocolElementSpecificationSequence)
-
newStorageProtocolElementSpecificationSequence
default StorageProtocolElementSpecificationSequence newStorageProtocolElementSpecificationSequence(int initialCapacity) Adds a new Storage Protocol Element Specification Sequence. (seeStorageProtocolElementSpecificationSequence)- Parameters:
initialCapacity- the initial capacity for the new Storage Protocol Element Specification Sequence
-
ensureStorageProtocolElementSpecificationSequence
default StorageProtocolElementSpecificationSequence ensureStorageProtocolElementSpecificationSequence(int initialCapacity) Adds a new Storage Protocol Element Specification Sequence (seeStorageProtocolElementSpecificationSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Storage Protocol Element Specification Sequence is created.- Returns:
- Either the already existing Storage Protocol Element Specification Sequence (see
StorageProtocolElementSpecificationSequence) or a new one with capacityinitialCapacity.
-
ensureStorageProtocolElementSpecificationSequence
default StorageProtocolElementSpecificationSequence ensureStorageProtocolElementSpecificationSequence()Adds a new Storage Protocol Element Specification Sequence (seeStorageProtocolElementSpecificationSequence) with initial capacity 1 (seeensureStorageProtocolElementSpecificationSequence(int)) if it does not already exist.- Returns:
- Either the already existing Storage Protocol Element Specification Sequence (see
StorageProtocolElementSpecificationSequence) or a new one with capacity 1.
-
containsStorageProtocolElementSpecificationSequence
default boolean containsStorageProtocolElementSpecificationSequence()- Returns:
- Whether it contains the Storage Protocol Element Specification Sequence (see
StorageProtocolElementSpecificationSequence)
-
removeStorageProtocolElementSpecificationSequence
default void removeStorageProtocolElementSpecificationSequence()Removes the Storage Protocol Element Specification Sequence (seeStorageProtocolElementSpecificationSequence
-