Interface ProductTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
ProductCharacteristicsModule
- Enclosing class:
- ProductTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Product Type Code Sequence" (see
ProductTypeCodeSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
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
-