Interface PrinterCharacteristicsSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
PrinterCharacteristicsSequence.SimpleHolder
- Enclosing class:
- PrinterCharacteristicsSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Printer Characteristics Sequence" (see
PrinterCharacteristicsSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault PrinterCharacteristicsSequenceAdds a new Printer Characteristics Sequence (seePrinterCharacteristicsSequence) with initial capacity 1 (seeensurePrinterCharacteristicsSequence(int)) if it does not already exist.default PrinterCharacteristicsSequenceensurePrinterCharacteristicsSequence(int initialCapacity) Adds a new Printer Characteristics Sequence (seePrinterCharacteristicsSequence) if it does not already exist.default PrinterCharacteristicsSequencedefault PrinterCharacteristicsSequencenewPrinterCharacteristicsSequence(int initialCapacity) Adds a new Printer Characteristics Sequence.default voidRemoves the Printer Characteristics Sequence (seePrinterCharacteristicsSequencewrap(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 Printer Characteristics Sequence (seePrinterCharacteristicsSequence)- Returns:
- A wrapper object implementing the
PrinterCharacteristicsSequence.Holderinterface.
-
builder
- Returns:
- a
PrinterCharacteristicsSequence.Holder.Builderto create Printer Characteristics Sequence Items with a fluent API.
-
builder
static PrinterCharacteristicsSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by thePrinterCharacteristicsSequence.Holder.Builder.- Returns:
- a
PrinterCharacteristicsSequence.Holder.Builderto create Printer Characteristics Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getPrinterCharacteristicsSequence
- Returns:
- the Printer Characteristics Sequence (see
PrinterCharacteristicsSequence)
-
newPrinterCharacteristicsSequence
Adds a new Printer Characteristics Sequence. (seePrinterCharacteristicsSequence)- Parameters:
initialCapacity- the initial capacity for the new Printer Characteristics Sequence
-
ensurePrinterCharacteristicsSequence
Adds a new Printer Characteristics Sequence (seePrinterCharacteristicsSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Printer Characteristics Sequence is created.- Returns:
- Either the already existing Printer Characteristics Sequence (see
PrinterCharacteristicsSequence) or a new one with capacityinitialCapacity.
-
ensurePrinterCharacteristicsSequence
Adds a new Printer Characteristics Sequence (seePrinterCharacteristicsSequence) with initial capacity 1 (seeensurePrinterCharacteristicsSequence(int)) if it does not already exist.- Returns:
- Either the already existing Printer Characteristics Sequence (see
PrinterCharacteristicsSequence) or a new one with capacity 1.
-
containsPrinterCharacteristicsSequence
default boolean containsPrinterCharacteristicsSequence()- Returns:
- Whether it contains the Printer Characteristics Sequence (see
PrinterCharacteristicsSequence)
-
removePrinterCharacteristicsSequence
default void removePrinterCharacteristicsSequence()Removes the Printer Characteristics Sequence (seePrinterCharacteristicsSequence
-