Interface ImplantTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
GenericImplantTemplateDescriptionModule
- All Known Implementing Classes:
GenericImplantTemplateIOD,ImplantTypeCodeSequence.SimpleHolder
- Enclosing class:
- ImplantTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Implant Type Code Sequence" (see
ImplantTypeCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ImplantTypeCodeSequenceAdds a new Implant Type Code Sequence (seeImplantTypeCodeSequence) with initial capacity 1 (seeensureImplantTypeCodeSequence(int)) if it does not already exist.default ImplantTypeCodeSequenceensureImplantTypeCodeSequence(int initialCapacity) Adds a new Implant Type Code Sequence (seeImplantTypeCodeSequence) if it does not already exist.default ImplantTypeCodeSequencedefault ImplantTypeCodeSequencenewImplantTypeCodeSequence(int initialCapacity) Adds a new Implant Type Code Sequence.default voidRemoves the Implant Type Code Sequence (seeImplantTypeCodeSequencewrap(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 Implant Type Code Sequence (seeImplantTypeCodeSequence)- Returns:
- A wrapper object implementing the
ImplantTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
ImplantTypeCodeSequence.Holder.Builderto create Implant Type Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theImplantTypeCodeSequence.Holder.Builder.- Returns:
- a
ImplantTypeCodeSequence.Holder.Builderto create Implant Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getImplantTypeCodeSequence
- Returns:
- the Implant Type Code Sequence (see
ImplantTypeCodeSequence)
-
newImplantTypeCodeSequence
Adds a new Implant Type Code Sequence. (seeImplantTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Implant Type Code Sequence
-
ensureImplantTypeCodeSequence
Adds a new Implant Type Code Sequence (seeImplantTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Implant Type Code Sequence is created.- Returns:
- Either the already existing Implant Type Code Sequence (see
ImplantTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureImplantTypeCodeSequence
Adds a new Implant Type Code Sequence (seeImplantTypeCodeSequence) with initial capacity 1 (seeensureImplantTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Implant Type Code Sequence (see
ImplantTypeCodeSequence) or a new one with capacity 1.
-
containsImplantTypeCodeSequence
default boolean containsImplantTypeCodeSequence()- Returns:
- Whether it contains the Implant Type Code Sequence (see
ImplantTypeCodeSequence)
-
removeImplantTypeCodeSequence
default void removeImplantTypeCodeSequence()Removes the Implant Type Code Sequence (seeImplantTypeCodeSequence
-