Interface PredecessorProtocolSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
ProtocolContextModule
- All Known Implementing Classes:
CTDefinedProcedureProtocolIOD,CTPerformedProcedureProtocolIOD,XADefinedProcedureProtocolIOD,XAPerformedProcedureProtocolIOD
- Enclosing class:
- PredecessorProtocolSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Predecessor Protocol Sequence" (see
PredecessorProtocolSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault PredecessorProtocolSequenceAdds a new Predecessor Protocol Sequence (seePredecessorProtocolSequence) with initial capacity 1 (seeensurePredecessorProtocolSequence(int)) if it does not already exist.default PredecessorProtocolSequenceensurePredecessorProtocolSequence(int initialCapacity) Adds a new Predecessor Protocol Sequence (seePredecessorProtocolSequence) if it does not already exist.default PredecessorProtocolSequencedefault PredecessorProtocolSequencenewPredecessorProtocolSequence(int initialCapacity) Adds a new Predecessor Protocol Sequence.default voidRemoves the Predecessor Protocol Sequence (seePredecessorProtocolSequencewrap(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 Predecessor Protocol Sequence (seePredecessorProtocolSequence)- Returns:
- A wrapper object implementing the
PredecessorProtocolSequence.Holderinterface.
-
getPredecessorProtocolSequence
- Returns:
- the Predecessor Protocol Sequence (see
PredecessorProtocolSequence)
-
newPredecessorProtocolSequence
Adds a new Predecessor Protocol Sequence. (seePredecessorProtocolSequence)- Parameters:
initialCapacity- the initial capacity for the new Predecessor Protocol Sequence
-
ensurePredecessorProtocolSequence
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
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
-