Interface SpecimenTypeCodeSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
SpecimenDescriptionSequence.Item,SpecimenTypeCodeSequence.SimpleHolder
- Enclosing class:
- SpecimenTypeCodeSequence
public static interface SpecimenTypeCodeSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Specimen Type Code Sequence" (seeSpecimenTypeCodeSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSpecimenTypeCodeSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static SpecimenTypeCodeSequence.Holder.Builderbuilder()static SpecimenTypeCodeSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsSpecimenTypeCodeSequence()default SpecimenTypeCodeSequenceensureSpecimenTypeCodeSequence()Adds 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 SpecimenTypeCodeSequencegetSpecimenTypeCodeSequence()default SpecimenTypeCodeSequencenewSpecimenTypeCodeSequence(int initialCapacity)Adds a new Specimen Type Code Sequence.default voidremoveSpecimenTypeCodeSequence()Removes the Specimen Type Code Sequence (seeSpecimenTypeCodeSequencestatic SpecimenTypeCodeSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static SpecimenTypeCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Specimen Type Code Sequence (seeSpecimenTypeCodeSequence)- Returns:
- a wrapper object implementing the
SpecimenTypeCodeSequence.Holderinterface.
-
builder
static SpecimenTypeCodeSequence.Holder.Builder builder()
- Returns:
- a
SpecimenTypeCodeSequence.Holder.Builderto create Specimen Type Code Sequence Items with a fluent API.
-
builder
static SpecimenTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theSpecimenTypeCodeSequence.Holder.Builder.- Returns:
- a
SpecimenTypeCodeSequence.Holder.Builderto create Specimen Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSpecimenTypeCodeSequence
default SpecimenTypeCodeSequence getSpecimenTypeCodeSequence()
- Returns:
- the Specimen Type Code Sequence (see
SpecimenTypeCodeSequence)
-
newSpecimenTypeCodeSequence
default SpecimenTypeCodeSequence newSpecimenTypeCodeSequence(int initialCapacity)
Adds a new Specimen Type Code Sequence. (seeSpecimenTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Specimen Type Code Sequence- Returns:
- the newly created SpecimenTypeCodeSequence.
-
ensureSpecimenTypeCodeSequence
default SpecimenTypeCodeSequence ensureSpecimenTypeCodeSequence(int initialCapacity)
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
default SpecimenTypeCodeSequence 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
-
-