Interface BreedRegistryCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
BreedRegistrationSequence.Item,BreedRegistryCodeSequence.SimpleHolder
- Enclosing class:
- BreedRegistryCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Breed Registry Code Sequence" (see
BreedRegistryCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault BreedRegistryCodeSequenceAdds a new Breed Registry Code Sequence (seeBreedRegistryCodeSequence) with initial capacity 1 (seeensureBreedRegistryCodeSequence(int)) if it does not already exist.default BreedRegistryCodeSequenceensureBreedRegistryCodeSequence(int initialCapacity) Adds a new Breed Registry Code Sequence (seeBreedRegistryCodeSequence) if it does not already exist.default BreedRegistryCodeSequencedefault BreedRegistryCodeSequencenewBreedRegistryCodeSequence(int initialCapacity) Adds a new Breed Registry Code Sequence.default voidRemoves the Breed Registry Code Sequence (seeBreedRegistryCodeSequencewrap(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 Breed Registry Code Sequence (seeBreedRegistryCodeSequence)- Returns:
- A wrapper object implementing the
BreedRegistryCodeSequence.Holderinterface.
-
builder
- Returns:
- a
BreedRegistryCodeSequence.Holder.Builderto create Breed Registry Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theBreedRegistryCodeSequence.Holder.Builder.- Returns:
- a
BreedRegistryCodeSequence.Holder.Builderto create Breed Registry Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getBreedRegistryCodeSequence
- Returns:
- the Breed Registry Code Sequence (see
BreedRegistryCodeSequence)
-
newBreedRegistryCodeSequence
Adds a new Breed Registry Code Sequence. (seeBreedRegistryCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Breed Registry Code Sequence
-
ensureBreedRegistryCodeSequence
Adds a new Breed Registry Code Sequence (seeBreedRegistryCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Breed Registry Code Sequence is created.- Returns:
- Either the already existing Breed Registry Code Sequence (see
BreedRegistryCodeSequence) or a new one with capacityinitialCapacity.
-
ensureBreedRegistryCodeSequence
Adds a new Breed Registry Code Sequence (seeBreedRegistryCodeSequence) with initial capacity 1 (seeensureBreedRegistryCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Breed Registry Code Sequence (see
BreedRegistryCodeSequence) or a new one with capacity 1.
-
containsBreedRegistryCodeSequence
default boolean containsBreedRegistryCodeSequence()- Returns:
- Whether it contains the Breed Registry Code Sequence (see
BreedRegistryCodeSequence)
-
removeBreedRegistryCodeSequence
default void removeBreedRegistryCodeSequence()Removes the Breed Registry Code Sequence (seeBreedRegistryCodeSequence
-