Interface StructuredConstraintObservationSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
AssessmentObservationsSequence.Item,StructuredConstraintObservationSequence.SimpleHolder
- Enclosing class:
- StructuredConstraintObservationSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Structured Constraint Observation Sequence" (see
StructuredConstraintObservationSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Structured Constraint Observation Sequence (seeStructuredConstraintObservationSequence) with initial capacity 1 (seeensureStructuredConstraintObservationSequence(int)) if it does not already exist.ensureStructuredConstraintObservationSequence(int initialCapacity) Adds a new Structured Constraint Observation Sequence (seeStructuredConstraintObservationSequence) if it does not already exist.newStructuredConstraintObservationSequence(int initialCapacity) Adds a new Structured Constraint Observation Sequence.default voidRemoves the Structured Constraint Observation Sequence (seeStructuredConstraintObservationSequencewrap(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 Structured Constraint Observation Sequence (seeStructuredConstraintObservationSequence)- Returns:
- A wrapper object implementing the
StructuredConstraintObservationSequence.Holderinterface.
-
builder
- Returns:
- a
StructuredConstraintObservationSequence.Holder.Builderto create Structured Constraint Observation Sequence Items with a fluent API.
-
builder
static StructuredConstraintObservationSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theStructuredConstraintObservationSequence.Holder.Builder.- Returns:
- a
StructuredConstraintObservationSequence.Holder.Builderto create Structured Constraint Observation Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getStructuredConstraintObservationSequence
- Returns:
- the Structured Constraint Observation Sequence (see
StructuredConstraintObservationSequence)
-
newStructuredConstraintObservationSequence
default StructuredConstraintObservationSequence newStructuredConstraintObservationSequence(int initialCapacity) Adds a new Structured Constraint Observation Sequence. (seeStructuredConstraintObservationSequence)- Parameters:
initialCapacity- the initial capacity for the new Structured Constraint Observation Sequence
-
ensureStructuredConstraintObservationSequence
default StructuredConstraintObservationSequence ensureStructuredConstraintObservationSequence(int initialCapacity) Adds a new Structured Constraint Observation Sequence (seeStructuredConstraintObservationSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Structured Constraint Observation Sequence is created.- Returns:
- Either the already existing Structured Constraint Observation Sequence (see
StructuredConstraintObservationSequence) or a new one with capacityinitialCapacity.
-
ensureStructuredConstraintObservationSequence
Adds a new Structured Constraint Observation Sequence (seeStructuredConstraintObservationSequence) with initial capacity 1 (seeensureStructuredConstraintObservationSequence(int)) if it does not already exist.- Returns:
- Either the already existing Structured Constraint Observation Sequence (see
StructuredConstraintObservationSequence) or a new one with capacity 1.
-
containsStructuredConstraintObservationSequence
default boolean containsStructuredConstraintObservationSequence()- Returns:
- Whether it contains the Structured Constraint Observation Sequence (see
StructuredConstraintObservationSequence)
-
removeStructuredConstraintObservationSequence
default void removeStructuredConstraintObservationSequence()Removes the Structured Constraint Observation Sequence (seeStructuredConstraintObservationSequence
-