Interface TreatmentToleranceViolationTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
TreatmentToleranceViolationSequence.Item,TreatmentToleranceViolationTypeCodeSequence.SimpleHolder
- Enclosing class:
- TreatmentToleranceViolationTypeCodeSequence
public static interface TreatmentToleranceViolationTypeCodeSequence.Holder
extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Treatment Tolerance Violation Type Code Sequence" (see
TreatmentToleranceViolationTypeCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Treatment Tolerance Violation Type Code Sequence (seeTreatmentToleranceViolationTypeCodeSequence) with initial capacity 1 (seeensureTreatmentToleranceViolationTypeCodeSequence(int)) if it does not already exist.ensureTreatmentToleranceViolationTypeCodeSequence(int initialCapacity) Adds a new Treatment Tolerance Violation Type Code Sequence (seeTreatmentToleranceViolationTypeCodeSequence) if it does not already exist.newTreatmentToleranceViolationTypeCodeSequence(int initialCapacity) Adds a new Treatment Tolerance Violation Type Code Sequence.default voidRemoves the Treatment Tolerance Violation Type Code Sequence (seeTreatmentToleranceViolationTypeCodeSequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
static TreatmentToleranceViolationTypeCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- An attributes object containing the Treatment Tolerance Violation Type Code Sequence (seeTreatmentToleranceViolationTypeCodeSequence)- Returns:
- A wrapper object implementing the
TreatmentToleranceViolationTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
TreatmentToleranceViolationTypeCodeSequence.Holder.Builderto create Treatment Tolerance Violation Type Code Sequence Items with a fluent API.
-
builder
static TreatmentToleranceViolationTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theTreatmentToleranceViolationTypeCodeSequence.Holder.Builder.- Returns:
- a
TreatmentToleranceViolationTypeCodeSequence.Holder.Builderto create Treatment Tolerance Violation Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getTreatmentToleranceViolationTypeCodeSequence
default TreatmentToleranceViolationTypeCodeSequence getTreatmentToleranceViolationTypeCodeSequence()- Returns:
- the Treatment Tolerance Violation Type Code Sequence (see
TreatmentToleranceViolationTypeCodeSequence)
-
newTreatmentToleranceViolationTypeCodeSequence
default TreatmentToleranceViolationTypeCodeSequence newTreatmentToleranceViolationTypeCodeSequence(int initialCapacity) Adds a new Treatment Tolerance Violation Type Code Sequence. (seeTreatmentToleranceViolationTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Treatment Tolerance Violation Type Code Sequence
-
ensureTreatmentToleranceViolationTypeCodeSequence
default TreatmentToleranceViolationTypeCodeSequence ensureTreatmentToleranceViolationTypeCodeSequence(int initialCapacity) Adds a new Treatment Tolerance Violation Type Code Sequence (seeTreatmentToleranceViolationTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Treatment Tolerance Violation Type Code Sequence is created.- Returns:
- Either the already existing Treatment Tolerance Violation Type Code Sequence (see
TreatmentToleranceViolationTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureTreatmentToleranceViolationTypeCodeSequence
default TreatmentToleranceViolationTypeCodeSequence ensureTreatmentToleranceViolationTypeCodeSequence()Adds a new Treatment Tolerance Violation Type Code Sequence (seeTreatmentToleranceViolationTypeCodeSequence) with initial capacity 1 (seeensureTreatmentToleranceViolationTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Treatment Tolerance Violation Type Code Sequence (see
TreatmentToleranceViolationTypeCodeSequence) or a new one with capacity 1.
-
containsTreatmentToleranceViolationTypeCodeSequence
default boolean containsTreatmentToleranceViolationTypeCodeSequence()- Returns:
- Whether it contains the Treatment Tolerance Violation Type Code Sequence (see
TreatmentToleranceViolationTypeCodeSequence)
-
removeTreatmentToleranceViolationTypeCodeSequence
default void removeTreatmentToleranceViolationTypeCodeSequence()Removes the Treatment Tolerance Violation Type Code Sequence (seeTreatmentToleranceViolationTypeCodeSequence
-