Class SequenceIdManager

java.lang.Object
com.itextpdf.commons.actions.sequence.SequenceIdManager

public final class SequenceIdManager extends Object
Util class which is responsible for marking of AbstractIdentifiableElement with appropriate SequenceId.
  • Method Details

    • setSequenceId

      public static void setSequenceId (AbstractIdentifiableElement element, SequenceId sequenceId)
      Provides an AbstractIdentifiableElement with a SequenceId. Note that it is forbidden to override already existing identifier. If try to provide a new one then exception will be thrown.
      Parameters:
      element - is an identifiable element
      sequenceId - is an identifier to set
      Throws:
      IllegalStateException - if element already has an identifier
    • getSequenceId

      public static SequenceId getSequenceId (AbstractIdentifiableElement element)
      Gets an identifier of the element. If it was not provided will return null.
      Parameters:
      element - is an identifiable element
      Returns:
      the identifier of the element if presented and null otherwise