Interface PredecessorProtocolSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
ProtocolContextModule
- All Known Implementing Classes:
CTDefinedProcedureProtocolIOD,CTPerformedProcedureProtocolIOD,PredecessorProtocolSequence.SimpleHolder,XADefinedProcedureProtocolIOD,XAPerformedProcedureProtocolIOD
- Enclosing class:
- PredecessorProtocolSequence
public static interface PredecessorProtocolSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Predecessor Protocol Sequence" (seePredecessorProtocolSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPredecessorProtocolSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static PredecessorProtocolSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Predecessor Protocol Sequence (seePredecessorProtocolSequence)- Returns:
- a wrapper object implementing the
PredecessorProtocolSequence.Holderinterface.
-
builder
static PredecessorProtocolSequence.Holder.Builder builder()
- Returns:
- a
PredecessorProtocolSequence.Holder.Builderto create Predecessor Protocol Sequence Items with a fluent API.
-
builder
static PredecessorProtocolSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by thePredecessorProtocolSequence.Holder.Builder.- Returns:
- a
PredecessorProtocolSequence.Holder.Builderto create Predecessor Protocol Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPredecessorProtocolSequence
default PredecessorProtocolSequence getPredecessorProtocolSequence()
- Returns:
- the Predecessor Protocol Sequence (see
PredecessorProtocolSequence)
-
newPredecessorProtocolSequence
default PredecessorProtocolSequence newPredecessorProtocolSequence(int initialCapacity)
Adds a new Predecessor Protocol Sequence. (seePredecessorProtocolSequence)- Parameters:
initialCapacity- the initial capacity for the new Predecessor Protocol Sequence- Returns:
- the newly created PredecessorProtocolSequence.
-
ensurePredecessorProtocolSequence
default PredecessorProtocolSequence ensurePredecessorProtocolSequence(int initialCapacity)
Adds a new Predecessor Protocol Sequence (seePredecessorProtocolSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Predecessor Protocol Sequence is created.- Returns:
- either the already existing Predecessor Protocol Sequence (see
PredecessorProtocolSequence) or a new one with capacityinitialCapacity.
-
ensurePredecessorProtocolSequence
default PredecessorProtocolSequence ensurePredecessorProtocolSequence()
Adds a new Predecessor Protocol Sequence (seePredecessorProtocolSequence) with initial capacity 1 (seeensurePredecessorProtocolSequence(int)) if it does not already exist.- Returns:
- either the already existing Predecessor Protocol Sequence (see
PredecessorProtocolSequence) or a new one with capacity 1.
-
containsPredecessorProtocolSequence
default boolean containsPredecessorProtocolSequence()
- Returns:
- whether it contains the Predecessor Protocol Sequence (see
PredecessorProtocolSequence)
-
removePredecessorProtocolSequence
default void removePredecessorProtocolSequence()
Removes the Predecessor Protocol Sequence (seePredecessorProtocolSequence
-
-