Interface PartialViewCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
BreastViewModule,MammographyImageModule
- All Known Implementing Classes:
BreastProjectionXRayImageIOD,BreastTomosynthesisImageIOD,DigitalMammographyXRayImageIOD,PartialViewCodeSequence.SimpleHolder
- Enclosing class:
- PartialViewCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Partial View Code Sequence" (see
PartialViewCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault PartialViewCodeSequenceAdds a new Partial View Code Sequence (seePartialViewCodeSequence) with initial capacity 1 (seeensurePartialViewCodeSequence(int)) if it does not already exist.default PartialViewCodeSequenceensurePartialViewCodeSequence(int initialCapacity) Adds a new Partial View Code Sequence (seePartialViewCodeSequence) if it does not already exist.default PartialViewCodeSequencedefault PartialViewCodeSequencenewPartialViewCodeSequence(int initialCapacity) Adds a new Partial View Code Sequence.default voidRemoves the Partial View Code Sequence (seePartialViewCodeSequencewrap(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 Partial View Code Sequence (seePartialViewCodeSequence)- Returns:
- A wrapper object implementing the
PartialViewCodeSequence.Holderinterface.
-
builder
- Returns:
- a
PartialViewCodeSequence.Holder.Builderto create Partial View Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by thePartialViewCodeSequence.Holder.Builder.- Returns:
- a
PartialViewCodeSequence.Holder.Builderto create Partial View Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPartialViewCodeSequence
- Returns:
- the Partial View Code Sequence (see
PartialViewCodeSequence)
-
newPartialViewCodeSequence
Adds a new Partial View Code Sequence. (seePartialViewCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Partial View Code Sequence
-
ensurePartialViewCodeSequence
Adds a new Partial View Code Sequence (seePartialViewCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Partial View Code Sequence is created.- Returns:
- Either the already existing Partial View Code Sequence (see
PartialViewCodeSequence) or a new one with capacityinitialCapacity.
-
ensurePartialViewCodeSequence
Adds a new Partial View Code Sequence (seePartialViewCodeSequence) with initial capacity 1 (seeensurePartialViewCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Partial View Code Sequence (see
PartialViewCodeSequence) or a new one with capacity 1.
-
containsPartialViewCodeSequence
default boolean containsPartialViewCodeSequence()- Returns:
- Whether it contains the Partial View Code Sequence (see
PartialViewCodeSequence)
-
removePartialViewCodeSequence
default void removePartialViewCodeSequence()Removes the Partial View Code Sequence (seePartialViewCodeSequence
-