Interface ProductTypeCodeSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
ProductCharacteristicsModule
- All Known Implementing Classes:
ProductTypeCodeSequence.SimpleHolder
- Enclosing class:
- ProductTypeCodeSequence
public static interface ProductTypeCodeSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Product Type Code Sequence" (seeProductTypeCodeSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProductTypeCodeSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ProductTypeCodeSequence.Holder.Builderbuilder()static ProductTypeCodeSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsProductTypeCodeSequence()default ProductTypeCodeSequenceensureProductTypeCodeSequence()Adds a new Product Type Code Sequence (seeProductTypeCodeSequence) with initial capacity 1 (seeensureProductTypeCodeSequence(int)) if it does not already exist.default ProductTypeCodeSequenceensureProductTypeCodeSequence(int initialCapacity)Adds a new Product Type Code Sequence (seeProductTypeCodeSequence) if it does not already exist.default ProductTypeCodeSequencegetProductTypeCodeSequence()default ProductTypeCodeSequencenewProductTypeCodeSequence(int initialCapacity)Adds a new Product Type Code Sequence.default voidremoveProductTypeCodeSequence()Removes the Product Type Code Sequence (seeProductTypeCodeSequencestatic ProductTypeCodeSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ProductTypeCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Product Type Code Sequence (seeProductTypeCodeSequence)- Returns:
- a wrapper object implementing the
ProductTypeCodeSequence.Holderinterface.
-
builder
static ProductTypeCodeSequence.Holder.Builder builder()
- Returns:
- a
ProductTypeCodeSequence.Holder.Builderto create Product Type Code Sequence Items with a fluent API.
-
builder
static ProductTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theProductTypeCodeSequence.Holder.Builder.- Returns:
- a
ProductTypeCodeSequence.Holder.Builderto create Product Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getProductTypeCodeSequence
default ProductTypeCodeSequence getProductTypeCodeSequence()
- Returns:
- the Product Type Code Sequence (see
ProductTypeCodeSequence)
-
newProductTypeCodeSequence
default ProductTypeCodeSequence newProductTypeCodeSequence(int initialCapacity)
Adds a new Product Type Code Sequence. (seeProductTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Product Type Code Sequence- Returns:
- the newly created ProductTypeCodeSequence.
-
ensureProductTypeCodeSequence
default ProductTypeCodeSequence ensureProductTypeCodeSequence(int initialCapacity)
Adds a new Product Type Code Sequence (seeProductTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Product Type Code Sequence is created.- Returns:
- either the already existing Product Type Code Sequence (see
ProductTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureProductTypeCodeSequence
default ProductTypeCodeSequence ensureProductTypeCodeSequence()
Adds a new Product Type Code Sequence (seeProductTypeCodeSequence) with initial capacity 1 (seeensureProductTypeCodeSequence(int)) if it does not already exist.- Returns:
- either the already existing Product Type Code Sequence (see
ProductTypeCodeSequence) or a new one with capacity 1.
-
containsProductTypeCodeSequence
default boolean containsProductTypeCodeSequence()
- Returns:
- whether it contains the Product Type Code Sequence (see
ProductTypeCodeSequence)
-
removeProductTypeCodeSequence
default void removeProductTypeCodeSequence()
Removes the Product Type Code Sequence (seeProductTypeCodeSequence
-
-