Interface PatientPrimaryLanguageCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
PatientDemographicModule
- All Known Implementing Classes:
PatientPrimaryLanguageCodeSequence.SimpleHolder,UnifiedProcedureStepIOD
- Enclosing class:
- PatientPrimaryLanguageCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Patient's Primary Language Code Sequence" (see
PatientPrimaryLanguageCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Patient's Primary Language Code Sequence (seePatientPrimaryLanguageCodeSequence) with initial capacity 1 (seeensurePatientPrimaryLanguageCodeSequence(int)) if it does not already exist.ensurePatientPrimaryLanguageCodeSequence(int initialCapacity) Adds a new Patient's Primary Language Code Sequence (seePatientPrimaryLanguageCodeSequence) if it does not already exist.newPatientPrimaryLanguageCodeSequence(int initialCapacity) Adds a new Patient's Primary Language Code Sequence.default voidRemoves the Patient's Primary Language Code Sequence (seePatientPrimaryLanguageCodeSequencewrap(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's Primary Language Code Sequence (seePatientPrimaryLanguageCodeSequence)- Returns:
- A wrapper object implementing the
PatientPrimaryLanguageCodeSequence.Holderinterface.
-
builder
- Returns:
- a
PatientPrimaryLanguageCodeSequence.Holder.Builderto create Patient's Primary Language Code Sequence Items with a fluent API.
-
builder
static PatientPrimaryLanguageCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePatientPrimaryLanguageCodeSequence.Holder.Builder.- Returns:
- a
PatientPrimaryLanguageCodeSequence.Holder.Builderto create Patient's Primary Language Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPatientPrimaryLanguageCodeSequence
- Returns:
- the Patient's Primary Language Code Sequence (see
PatientPrimaryLanguageCodeSequence)
-
newPatientPrimaryLanguageCodeSequence
default PatientPrimaryLanguageCodeSequence newPatientPrimaryLanguageCodeSequence(int initialCapacity) Adds a new Patient's Primary Language Code Sequence. (seePatientPrimaryLanguageCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Patient's Primary Language Code Sequence
-
ensurePatientPrimaryLanguageCodeSequence
default PatientPrimaryLanguageCodeSequence ensurePatientPrimaryLanguageCodeSequence(int initialCapacity) Adds a new Patient's Primary Language Code Sequence (seePatientPrimaryLanguageCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Patient's Primary Language Code Sequence is created.- Returns:
- Either the already existing Patient's Primary Language Code Sequence (see
PatientPrimaryLanguageCodeSequence) or a new one with capacityinitialCapacity.
-
ensurePatientPrimaryLanguageCodeSequence
Adds a new Patient's Primary Language Code Sequence (seePatientPrimaryLanguageCodeSequence) with initial capacity 1 (seeensurePatientPrimaryLanguageCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Patient's Primary Language Code Sequence (see
PatientPrimaryLanguageCodeSequence) or a new one with capacity 1.
-
containsPatientPrimaryLanguageCodeSequence
default boolean containsPatientPrimaryLanguageCodeSequence()- Returns:
- Whether it contains the Patient's Primary Language Code Sequence (see
PatientPrimaryLanguageCodeSequence)
-
removePatientPrimaryLanguageCodeSequence
default void removePatientPrimaryLanguageCodeSequence()Removes the Patient's Primary Language Code Sequence (seePatientPrimaryLanguageCodeSequence
-