Interface TherapeuticRoleTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RTAnatomicPrescriptionSequence.Item
- Enclosing class:
- TherapeuticRoleTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Therapeutic Role Type Code Sequence" (see
TherapeuticRoleTypeCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault TherapeuticRoleTypeCodeSequenceAdds a new Therapeutic Role Type Code Sequence (seeTherapeuticRoleTypeCodeSequence) with initial capacity 1 (seeensureTherapeuticRoleTypeCodeSequence(int)) if it does not already exist.default TherapeuticRoleTypeCodeSequenceensureTherapeuticRoleTypeCodeSequence(int initialCapacity) Adds a new Therapeutic Role Type Code Sequence (seeTherapeuticRoleTypeCodeSequence) if it does not already exist.default TherapeuticRoleTypeCodeSequencedefault TherapeuticRoleTypeCodeSequencenewTherapeuticRoleTypeCodeSequence(int initialCapacity) Adds a new Therapeutic Role Type Code Sequence.default voidRemoves the Therapeutic Role Type Code Sequence (seeTherapeuticRoleTypeCodeSequencewrap(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 Therapeutic Role Type Code Sequence (seeTherapeuticRoleTypeCodeSequence)- Returns:
- A wrapper object implementing the
TherapeuticRoleTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
TherapeuticRoleTypeCodeSequence.Holder.Builderto create Therapeutic Role Type Code Sequence Items with a fluent API.
-
builder
static TherapeuticRoleTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theTherapeuticRoleTypeCodeSequence.Holder.Builder.- Returns:
- a
TherapeuticRoleTypeCodeSequence.Holder.Builderto create Therapeutic Role Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getTherapeuticRoleTypeCodeSequence
- Returns:
- the Therapeutic Role Type Code Sequence (see
TherapeuticRoleTypeCodeSequence)
-
newTherapeuticRoleTypeCodeSequence
Adds a new Therapeutic Role Type Code Sequence. (seeTherapeuticRoleTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Therapeutic Role Type Code Sequence
-
ensureTherapeuticRoleTypeCodeSequence
Adds a new Therapeutic Role Type Code Sequence (seeTherapeuticRoleTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Therapeutic Role Type Code Sequence is created.- Returns:
- Either the already existing Therapeutic Role Type Code Sequence (see
TherapeuticRoleTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureTherapeuticRoleTypeCodeSequence
Adds a new Therapeutic Role Type Code Sequence (seeTherapeuticRoleTypeCodeSequence) with initial capacity 1 (seeensureTherapeuticRoleTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Therapeutic Role Type Code Sequence (see
TherapeuticRoleTypeCodeSequence) or a new one with capacity 1.
-
containsTherapeuticRoleTypeCodeSequence
default boolean containsTherapeuticRoleTypeCodeSequence()- Returns:
- Whether it contains the Therapeutic Role Type Code Sequence (see
TherapeuticRoleTypeCodeSequence)
-
removeTherapeuticRoleTypeCodeSequence
default void removeTherapeuticRoleTypeCodeSequence()Removes the Therapeutic Role Type Code Sequence (seeTherapeuticRoleTypeCodeSequence
-