Interface PatientPhysiologicalStateCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
PatientPhysiologicalStateCodeSequence.SimpleHolder
- Enclosing class:
- PatientPhysiologicalStateCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Patient Physiological State Code Sequence" (see
PatientPhysiologicalStateCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Patient Physiological State Code Sequence (seePatientPhysiologicalStateCodeSequence) with initial capacity 1 (seeensurePatientPhysiologicalStateCodeSequence(int)) if it does not already exist.ensurePatientPhysiologicalStateCodeSequence(int initialCapacity) Adds a new Patient Physiological State Code Sequence (seePatientPhysiologicalStateCodeSequence) if it does not already exist.newPatientPhysiologicalStateCodeSequence(int initialCapacity) Adds a new Patient Physiological State Code Sequence.default voidRemoves the Patient Physiological State Code Sequence (seePatientPhysiologicalStateCodeSequencewrap(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 Patient Physiological State Code Sequence (seePatientPhysiologicalStateCodeSequence)- Returns:
- A wrapper object implementing the
PatientPhysiologicalStateCodeSequence.Holderinterface.
-
builder
- Returns:
- a
PatientPhysiologicalStateCodeSequence.Holder.Builderto create Patient Physiological State Code Sequence Items with a fluent API.
-
builder
static PatientPhysiologicalStateCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePatientPhysiologicalStateCodeSequence.Holder.Builder.- Returns:
- a
PatientPhysiologicalStateCodeSequence.Holder.Builderto create Patient Physiological State Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPatientPhysiologicalStateCodeSequence
- Returns:
- the Patient Physiological State Code Sequence (see
PatientPhysiologicalStateCodeSequence)
-
newPatientPhysiologicalStateCodeSequence
default PatientPhysiologicalStateCodeSequence newPatientPhysiologicalStateCodeSequence(int initialCapacity) Adds a new Patient Physiological State Code Sequence. (seePatientPhysiologicalStateCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Patient Physiological State Code Sequence
-
ensurePatientPhysiologicalStateCodeSequence
default PatientPhysiologicalStateCodeSequence ensurePatientPhysiologicalStateCodeSequence(int initialCapacity) Adds a new Patient Physiological State Code Sequence (seePatientPhysiologicalStateCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Patient Physiological State Code Sequence is created.- Returns:
- Either the already existing Patient Physiological State Code Sequence (see
PatientPhysiologicalStateCodeSequence) or a new one with capacityinitialCapacity.
-
ensurePatientPhysiologicalStateCodeSequence
Adds a new Patient Physiological State Code Sequence (seePatientPhysiologicalStateCodeSequence) with initial capacity 1 (seeensurePatientPhysiologicalStateCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Patient Physiological State Code Sequence (see
PatientPhysiologicalStateCodeSequence) or a new one with capacity 1.
-
containsPatientPhysiologicalStateCodeSequence
default boolean containsPatientPhysiologicalStateCodeSequence()- Returns:
- Whether it contains the Patient Physiological State Code Sequence (see
PatientPhysiologicalStateCodeSequence)
-
removePatientPhysiologicalStateCodeSequence
default void removePatientPhysiologicalStateCodeSequence()Removes the Patient Physiological State Code Sequence (seePatientPhysiologicalStateCodeSequence
-