Interface PrescriptionNotesSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
PrescriptionNotesSequence.SimpleHolder,RTPrescriptionSequence.Item
- Enclosing class:
- PrescriptionNotesSequence
public static interface PrescriptionNotesSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Prescription Notes Sequence" (seePrescriptionNotesSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPrescriptionNotesSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static PrescriptionNotesSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Prescription Notes Sequence (seePrescriptionNotesSequence)- Returns:
- a wrapper object implementing the
PrescriptionNotesSequence.Holderinterface.
-
builder
static PrescriptionNotesSequence.Holder.Builder builder()
- Returns:
- a
PrescriptionNotesSequence.Holder.Builderto create Prescription Notes Sequence Items with a fluent API.
-
builder
static PrescriptionNotesSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by thePrescriptionNotesSequence.Holder.Builder.- Returns:
- a
PrescriptionNotesSequence.Holder.Builderto create Prescription Notes Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPrescriptionNotesSequence
default PrescriptionNotesSequence getPrescriptionNotesSequence()
- Returns:
- the Prescription Notes Sequence (see
PrescriptionNotesSequence)
-
newPrescriptionNotesSequence
default PrescriptionNotesSequence newPrescriptionNotesSequence(int initialCapacity)
Adds a new Prescription Notes Sequence. (seePrescriptionNotesSequence)- Parameters:
initialCapacity- the initial capacity for the new Prescription Notes Sequence- Returns:
- the newly created PrescriptionNotesSequence.
-
ensurePrescriptionNotesSequence
default PrescriptionNotesSequence ensurePrescriptionNotesSequence(int initialCapacity)
Adds a new Prescription Notes Sequence (seePrescriptionNotesSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Prescription Notes Sequence is created.- Returns:
- either the already existing Prescription Notes Sequence (see
PrescriptionNotesSequence) or a new one with capacityinitialCapacity.
-
ensurePrescriptionNotesSequence
default PrescriptionNotesSequence ensurePrescriptionNotesSequence()
Adds a new Prescription Notes Sequence (seePrescriptionNotesSequence) with initial capacity 1 (seeensurePrescriptionNotesSequence(int)) if it does not already exist.- Returns:
- either the already existing Prescription Notes Sequence (see
PrescriptionNotesSequence) or a new one with capacity 1.
-
containsPrescriptionNotesSequence
default boolean containsPrescriptionNotesSequence()
- Returns:
- whether it contains the Prescription Notes Sequence (see
PrescriptionNotesSequence)
-
removePrescriptionNotesSequence
default void removePrescriptionNotesSequence()
Removes the Prescription Notes Sequence (seePrescriptionNotesSequence
-
-