Interface ProductTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
ProductCharacteristicsModule
- All Known Implementing Classes:
ProductTypeCodeSequence.SimpleHolder
- Enclosing class:
- ProductTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Product Type Code Sequence" (see
ProductTypeCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ProductTypeCodeSequenceAdds 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 ProductTypeCodeSequencedefault ProductTypeCodeSequencenewProductTypeCodeSequence(int initialCapacity) Adds a new Product Type Code Sequence.default voidRemoves the Product Type Code Sequence (seeProductTypeCodeSequencewrap(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 Product Type Code Sequence (seeProductTypeCodeSequence)- Returns:
- A wrapper object implementing the
ProductTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
ProductTypeCodeSequence.Holder.Builderto create Product Type Code Sequence Items with a fluent API.
-
builder
- 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
- Returns:
- the Product Type Code Sequence (see
ProductTypeCodeSequence)
-
newProductTypeCodeSequence
Adds a new Product Type Code Sequence. (seeProductTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Product Type Code Sequence
-
ensureProductTypeCodeSequence
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
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
-