Interface ContraindicationsCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
ProtocolContextModule
- All Known Implementing Classes:
ContraindicationsCodeSequence.SimpleHolder,CTDefinedProcedureProtocolIOD,CTPerformedProcedureProtocolIOD,XADefinedProcedureProtocolIOD,XAPerformedProcedureProtocolIOD
- Enclosing class:
- ContraindicationsCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Contraindications Code Sequence" (see
ContraindicationsCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ContraindicationsCodeSequenceAdds a new Contraindications Code Sequence (seeContraindicationsCodeSequence) with initial capacity 1 (seeensureContraindicationsCodeSequence(int)) if it does not already exist.default ContraindicationsCodeSequenceensureContraindicationsCodeSequence(int initialCapacity) Adds a new Contraindications Code Sequence (seeContraindicationsCodeSequence) if it does not already exist.default ContraindicationsCodeSequencedefault ContraindicationsCodeSequencenewContraindicationsCodeSequence(int initialCapacity) Adds a new Contraindications Code Sequence.default voidRemoves the Contraindications Code Sequence (seeContraindicationsCodeSequencewrap(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 Contraindications Code Sequence (seeContraindicationsCodeSequence)- Returns:
- A wrapper object implementing the
ContraindicationsCodeSequence.Holderinterface.
-
builder
- Returns:
- a
ContraindicationsCodeSequence.Holder.Builderto create Contraindications Code Sequence Items with a fluent API.
-
builder
static ContraindicationsCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theContraindicationsCodeSequence.Holder.Builder.- Returns:
- a
ContraindicationsCodeSequence.Holder.Builderto create Contraindications Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getContraindicationsCodeSequence
- Returns:
- the Contraindications Code Sequence (see
ContraindicationsCodeSequence)
-
newContraindicationsCodeSequence
Adds a new Contraindications Code Sequence. (seeContraindicationsCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Contraindications Code Sequence
-
ensureContraindicationsCodeSequence
Adds a new Contraindications Code Sequence (seeContraindicationsCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Contraindications Code Sequence is created.- Returns:
- Either the already existing Contraindications Code Sequence (see
ContraindicationsCodeSequence) or a new one with capacityinitialCapacity.
-
ensureContraindicationsCodeSequence
Adds a new Contraindications Code Sequence (seeContraindicationsCodeSequence) with initial capacity 1 (seeensureContraindicationsCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Contraindications Code Sequence (see
ContraindicationsCodeSequence) or a new one with capacity 1.
-
containsContraindicationsCodeSequence
default boolean containsContraindicationsCodeSequence()- Returns:
- Whether it contains the Contraindications Code Sequence (see
ContraindicationsCodeSequence)
-
removeContraindicationsCodeSequence
default void removeContraindicationsCodeSequence()Removes the Contraindications Code Sequence (seeContraindicationsCodeSequence
-