Interface LensesCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
OphthalmicPhotographicParametersModule
- All Known Implementing Classes:
LensesCodeSequence.SimpleHolder,OphthalmicPhotography16BitImageIOD,OphthalmicPhotography8BitImageIOD,OpticalPathSequence.Item,WideFieldOphthalmicPhotography3DCoordinatesImageIOD,WideFieldOphthalmicPhotographyStereographicProjectionImageIOD
- Enclosing class:
- LensesCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Lenses Code Sequence" (see
LensesCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault LensesCodeSequenceAdds a new Lenses Code Sequence (seeLensesCodeSequence) with initial capacity 1 (seeensureLensesCodeSequence(int)) if it does not already exist.default LensesCodeSequenceensureLensesCodeSequence(int initialCapacity) Adds a new Lenses Code Sequence (seeLensesCodeSequence) if it does not already exist.default LensesCodeSequencedefault LensesCodeSequencenewLensesCodeSequence(int initialCapacity) Adds a new Lenses Code Sequence.default voidRemoves the Lenses Code Sequence (seeLensesCodeSequencestatic LensesCodeSequence.Holderwrap(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 Lenses Code Sequence (seeLensesCodeSequence)- Returns:
- A wrapper object implementing the
LensesCodeSequence.Holderinterface.
-
builder
- Returns:
- a
LensesCodeSequence.Holder.Builderto create Lenses Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theLensesCodeSequence.Holder.Builder.- Returns:
- a
LensesCodeSequence.Holder.Builderto create Lenses Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getLensesCodeSequence
- Returns:
- the Lenses Code Sequence (see
LensesCodeSequence)
-
newLensesCodeSequence
Adds a new Lenses Code Sequence. (seeLensesCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Lenses Code Sequence
-
ensureLensesCodeSequence
Adds a new Lenses Code Sequence (seeLensesCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Lenses Code Sequence is created.- Returns:
- Either the already existing Lenses Code Sequence (see
LensesCodeSequence) or a new one with capacityinitialCapacity.
-
ensureLensesCodeSequence
Adds a new Lenses Code Sequence (seeLensesCodeSequence) with initial capacity 1 (seeensureLensesCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Lenses Code Sequence (see
LensesCodeSequence) or a new one with capacity 1.
-
containsLensesCodeSequence
default boolean containsLensesCodeSequence()- Returns:
- Whether it contains the Lenses Code Sequence (see
LensesCodeSequence)
-
removeLensesCodeSequence
default void removeLensesCodeSequence()Removes the Lenses Code Sequence (seeLensesCodeSequence
-