Interface ContributingSourcesSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
BreastTomosynthesisContributingSourcesModule,XRay3DAngiographicImageContributingSourcesModule,XRay3DCraniofacialImageContributingSourcesModule
- All Known Implementing Classes:
BreastTomosynthesisImageIOD,XRay3DAngiographicImageIOD,XRay3DCraniofacialImageIOD
- Enclosing class:
- ContributingSourcesSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Contributing Sources Sequence" (see
ContributingSourcesSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ContributingSourcesSequenceAdds a new Contributing Sources Sequence (seeContributingSourcesSequence) with initial capacity 1 (seeensureContributingSourcesSequence(int)) if it does not already exist.default ContributingSourcesSequenceensureContributingSourcesSequence(int initialCapacity) Adds a new Contributing Sources Sequence (seeContributingSourcesSequence) if it does not already exist.default ContributingSourcesSequencedefault ContributingSourcesSequencenewContributingSourcesSequence(int initialCapacity) Adds a new Contributing Sources Sequence.default voidRemoves the Contributing Sources Sequence (seeContributingSourcesSequencewrap(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 Contributing Sources Sequence (seeContributingSourcesSequence)- Returns:
- A wrapper object implementing the
ContributingSourcesSequence.Holderinterface.
-
builder
- Returns:
- a
ContributingSourcesSequence.Holder.Builderto create Contributing Sources Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theContributingSourcesSequence.Holder.Builder.- Returns:
- a
ContributingSourcesSequence.Holder.Builderto create Contributing Sources Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getContributingSourcesSequence
- Returns:
- the Contributing Sources Sequence (see
ContributingSourcesSequence)
-
newContributingSourcesSequence
Adds a new Contributing Sources Sequence. (seeContributingSourcesSequence)- Parameters:
initialCapacity- the initial capacity for the new Contributing Sources Sequence
-
ensureContributingSourcesSequence
Adds a new Contributing Sources Sequence (seeContributingSourcesSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Contributing Sources Sequence is created.- Returns:
- Either the already existing Contributing Sources Sequence (see
ContributingSourcesSequence) or a new one with capacityinitialCapacity.
-
ensureContributingSourcesSequence
Adds a new Contributing Sources Sequence (seeContributingSourcesSequence) with initial capacity 1 (seeensureContributingSourcesSequence(int)) if it does not already exist.- Returns:
- Either the already existing Contributing Sources Sequence (see
ContributingSourcesSequence) or a new one with capacity 1.
-
containsContributingSourcesSequence
default boolean containsContributingSourcesSequence()- Returns:
- Whether it contains the Contributing Sources Sequence (see
ContributingSourcesSequence)
-
removeContributingSourcesSequence
default void removeContributingSourcesSequence()Removes the Contributing Sources Sequence (seeContributingSourcesSequence
-