Interface DirectSegmentReferenceSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
SegmentReferenceSequence.Item
- Enclosing class:
- DirectSegmentReferenceSequence
public static interface DirectSegmentReferenceSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Direct Segment Reference Sequence" (seeDirectSegmentReferenceSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDirectSegmentReferenceSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static DirectSegmentReferenceSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Direct Segment Reference Sequence (seeDirectSegmentReferenceSequence)- Returns:
- a wrapper object implementing the
DirectSegmentReferenceSequence.Holderinterface.
-
builder
static DirectSegmentReferenceSequence.Holder.Builder builder()
- Returns:
- a
DirectSegmentReferenceSequence.Holder.Builderto create Direct Segment Reference Sequence Items with a fluent API.
-
builder
static DirectSegmentReferenceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theDirectSegmentReferenceSequence.Holder.Builder.- Returns:
- a
DirectSegmentReferenceSequence.Holder.Builderto create Direct Segment Reference Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDirectSegmentReferenceSequence
default DirectSegmentReferenceSequence getDirectSegmentReferenceSequence()
- Returns:
- the Direct Segment Reference Sequence (see
DirectSegmentReferenceSequence)
-
newDirectSegmentReferenceSequence
default DirectSegmentReferenceSequence newDirectSegmentReferenceSequence(int initialCapacity)
Adds a new Direct Segment Reference Sequence. (seeDirectSegmentReferenceSequence)- Parameters:
initialCapacity- the initial capacity for the new Direct Segment Reference Sequence- Returns:
- the newly created DirectSegmentReferenceSequence.
-
ensureDirectSegmentReferenceSequence
default DirectSegmentReferenceSequence ensureDirectSegmentReferenceSequence(int initialCapacity)
Adds a new Direct Segment Reference Sequence (seeDirectSegmentReferenceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Direct Segment Reference Sequence is created.- Returns:
- either the already existing Direct Segment Reference Sequence (see
DirectSegmentReferenceSequence) or a new one with capacityinitialCapacity.
-
ensureDirectSegmentReferenceSequence
default DirectSegmentReferenceSequence ensureDirectSegmentReferenceSequence()
Adds a new Direct Segment Reference Sequence (seeDirectSegmentReferenceSequence) with initial capacity 1 (seeensureDirectSegmentReferenceSequence(int)) if it does not already exist.- Returns:
- either the already existing Direct Segment Reference Sequence (see
DirectSegmentReferenceSequence) or a new one with capacity 1.
-
containsDirectSegmentReferenceSequence
default boolean containsDirectSegmentReferenceSequence()
- Returns:
- whether it contains the Direct Segment Reference Sequence (see
DirectSegmentReferenceSequence)
-
removeDirectSegmentReferenceSequence
default void removeDirectSegmentReferenceSequence()
Removes the Direct Segment Reference Sequence (seeDirectSegmentReferenceSequence
-
-