Interface PTORepresentationSequence.Holder
- All Superinterfaces:
AttributesWrapper
- Enclosing class:
- PTORepresentationSequence
A class implementing this interface can hold attributes which contain the DICOM tag "PTO Representation Sequence" (see
PTORepresentationSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault PTORepresentationSequenceAdds a new PTO Representation Sequence (seePTORepresentationSequence) with initial capacity 1 (seeensurePTORepresentationSequence(int)) if it does not already exist.default PTORepresentationSequenceensurePTORepresentationSequence(int initialCapacity) Adds a new PTO Representation Sequence (seePTORepresentationSequence) if it does not already exist.default PTORepresentationSequencedefault PTORepresentationSequencenewPTORepresentationSequence(int initialCapacity) Adds a new PTO Representation Sequence.default voidRemoves the PTO Representation Sequence (seePTORepresentationSequencewrap(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 PTO Representation Sequence (seePTORepresentationSequence)- Returns:
- A wrapper object implementing the
PTORepresentationSequence.Holderinterface.
-
getPTORepresentationSequence
- Returns:
- the PTO Representation Sequence (see
PTORepresentationSequence)
-
newPTORepresentationSequence
Adds a new PTO Representation Sequence. (seePTORepresentationSequence)- Parameters:
initialCapacity- the initial capacity for the new PTO Representation Sequence
-
ensurePTORepresentationSequence
Adds a new PTO Representation Sequence (seePTORepresentationSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new PTO Representation Sequence is created.- Returns:
- Either the already existing PTO Representation Sequence (see
PTORepresentationSequence) or a new one with capacityinitialCapacity.
-
ensurePTORepresentationSequence
Adds a new PTO Representation Sequence (seePTORepresentationSequence) with initial capacity 1 (seeensurePTORepresentationSequence(int)) if it does not already exist.- Returns:
- Either the already existing PTO Representation Sequence (see
PTORepresentationSequence) or a new one with capacity 1.
-
containsPTORepresentationSequence
default boolean containsPTORepresentationSequence()- Returns:
- Whether it contains the PTO Representation Sequence (see
PTORepresentationSequence)
-
removePTORepresentationSequence
default void removePTORepresentationSequence()Removes the PTO Representation Sequence (seePTORepresentationSequence
-