Interface PrescriptionNotesSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RTPrescriptionSequence.Item
- Enclosing class:
- PrescriptionNotesSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Prescription Notes Sequence" (see
PrescriptionNotesSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault PrescriptionNotesSequenceAdds a new Prescription Notes Sequence (seePrescriptionNotesSequence) with initial capacity 1 (seeensurePrescriptionNotesSequence(int)) if it does not already exist.default PrescriptionNotesSequenceensurePrescriptionNotesSequence(int initialCapacity) Adds a new Prescription Notes Sequence (seePrescriptionNotesSequence) if it does not already exist.default PrescriptionNotesSequencedefault PrescriptionNotesSequencenewPrescriptionNotesSequence(int initialCapacity) Adds a new Prescription Notes Sequence.default voidRemoves the Prescription Notes Sequence (seePrescriptionNotesSequencewrap(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 Prescription Notes Sequence (seePrescriptionNotesSequence)- Returns:
- A wrapper object implementing the
PrescriptionNotesSequence.Holderinterface.
-
builder
- Returns:
- a
PrescriptionNotesSequence.Holder.Builderto create Prescription Notes Sequence Items with a fluent API.
-
builder
- 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
- Returns:
- the Prescription Notes Sequence (see
PrescriptionNotesSequence)
-
newPrescriptionNotesSequence
Adds a new Prescription Notes Sequence. (seePrescriptionNotesSequence)- Parameters:
initialCapacity- the initial capacity for the new Prescription Notes Sequence
-
ensurePrescriptionNotesSequence
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
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
-