Interface SpecimenTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
SpecimenDescriptionSequence.Item
- Enclosing class:
- SpecimenTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Specimen Type Code Sequence" (see
SpecimenTypeCodeSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault SpecimenTypeCodeSequenceAdds a new Specimen Type Code Sequence (seeSpecimenTypeCodeSequence) with initial capacity 1 (seeensureSpecimenTypeCodeSequence(int)) if it does not already exist.default SpecimenTypeCodeSequenceensureSpecimenTypeCodeSequence(int initialCapacity) Adds a new Specimen Type Code Sequence (seeSpecimenTypeCodeSequence) if it does not already exist.default SpecimenTypeCodeSequencedefault SpecimenTypeCodeSequencenewSpecimenTypeCodeSequence(int initialCapacity) Adds a new Specimen Type Code Sequence.default voidRemoves the Specimen Type Code Sequence (seeSpecimenTypeCodeSequencewrap(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 Specimen Type Code Sequence (seeSpecimenTypeCodeSequence)- Returns:
- A wrapper object implementing the
SpecimenTypeCodeSequence.Holderinterface.
-
getSpecimenTypeCodeSequence
- Returns:
- the Specimen Type Code Sequence (see
SpecimenTypeCodeSequence)
-
newSpecimenTypeCodeSequence
Adds a new Specimen Type Code Sequence. (seeSpecimenTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Specimen Type Code Sequence
-
ensureSpecimenTypeCodeSequence
Adds a new Specimen Type Code Sequence (seeSpecimenTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Specimen Type Code Sequence is created.- Returns:
- Either the already existing Specimen Type Code Sequence (see
SpecimenTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureSpecimenTypeCodeSequence
Adds a new Specimen Type Code Sequence (seeSpecimenTypeCodeSequence) with initial capacity 1 (seeensureSpecimenTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Specimen Type Code Sequence (see
SpecimenTypeCodeSequence) or a new one with capacity 1.
-
containsSpecimenTypeCodeSequence
default boolean containsSpecimenTypeCodeSequence()- Returns:
- Whether it contains the Specimen Type Code Sequence (see
SpecimenTypeCodeSequence)
-
removeSpecimenTypeCodeSequence
default void removeSpecimenTypeCodeSequence()Removes the Specimen Type Code Sequence (seeSpecimenTypeCodeSequence
-