Interface PTORepresentationSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
PTORepresentationSequence.SimpleHolder
- Enclosing class:
- PTORepresentationSequence
public static interface PTORepresentationSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "PTO Representation Sequence" (seePTORepresentationSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPTORepresentationSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static PTORepresentationSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the PTO Representation Sequence (seePTORepresentationSequence)- Returns:
- a wrapper object implementing the
PTORepresentationSequence.Holderinterface.
-
builder
static PTORepresentationSequence.Holder.Builder builder()
- Returns:
- a
PTORepresentationSequence.Holder.Builderto create PTO Representation Sequence Items with a fluent API.
-
builder
static PTORepresentationSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default PTORepresentationSequence getPTORepresentationSequence()
- Returns:
- the PTO Representation Sequence (see
PTORepresentationSequence)
-
newPTORepresentationSequence
default PTORepresentationSequence newPTORepresentationSequence(int initialCapacity)
Adds a new PTO Representation Sequence. (seePTORepresentationSequence)- Parameters:
initialCapacity- the initial capacity for the new PTO Representation Sequence- Returns:
- the newly created PTORepresentationSequence.
-
ensurePTORepresentationSequence
default PTORepresentationSequence ensurePTORepresentationSequence(int initialCapacity)
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
default PTORepresentationSequence 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
-
-