Interface FacetSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
FacetSequence.SimpleHolder, SurfaceMeshPrimitivesSequence.Item
Enclosing class:
FacetSequence

public static interface FacetSequence.Holder extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Facet Sequence" (see FacetSequence)
  • Method Details

    • wrap

      static FacetSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - An attributes object containing the Facet Sequence (see FacetSequence)
      Returns:
      A wrapper object implementing the FacetSequence.Holder interface.
    • builder

      static FacetSequence.Holder.Builder builder()
      Returns:
      a FacetSequence.Holder.Builder to create Facet Sequence Items with a fluent API.
    • builder

      static FacetSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - The Attributes to be wrapped by the FacetSequence.Holder.Builder.
      Returns:
      a FacetSequence.Holder.Builder to create Facet Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
    • getFacetSequence

      default FacetSequence getFacetSequence()
      Returns:
      the Facet Sequence (see FacetSequence)
    • newFacetSequence

      default FacetSequence newFacetSequence(int initialCapacity)
      Adds a new Facet Sequence. (see FacetSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Facet Sequence
    • ensureFacetSequence

      default FacetSequence ensureFacetSequence(int initialCapacity)
      Adds a new Facet Sequence (see FacetSequence) if it does not already exist. (see Attributes.ensureSequence(int, int)
      Parameters:
      initialCapacity - The initial capacity (see ArrayList(int)) if a new Facet Sequence is created.
      Returns:
      Either the already existing Facet Sequence (see FacetSequence) or a new one with capacity initialCapacity.
    • ensureFacetSequence

      default FacetSequence ensureFacetSequence()
      Adds a new Facet Sequence (see FacetSequence) with initial capacity 1 (see ensureFacetSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Facet Sequence (see FacetSequence) or a new one with capacity 1.
    • containsFacetSequence

      default boolean containsFacetSequence()
      Returns:
      Whether it contains the Facet Sequence (see FacetSequence)
    • removeFacetSequence

      default void removeFacetSequence()
      Removes the Facet Sequence (see FacetSequence