Interface PTORepresentationSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
PTORepresentationSequence.SimpleHolder
- Enclosing class:
- PTORepresentationSequence
A class implementing this interface can hold attributes which contain the DICOM tag "PTO Representation Sequence" (see
PTORepresentationSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default 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.
-
builder
- Returns:
- a
PTORepresentationSequence.Holder.Builderto create PTO Representation Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by thePTORepresentationSequence.Holder.Builder.- Returns:
- a
PTORepresentationSequence.Holder.Builderto create PTO Representation Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
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
-