Class ArrayPathItem

java.lang.Object
com.itextpdf.kernel.utils.objectpathitems.LocalPathItem
com.itextpdf.kernel.utils.objectpathitems.ArrayPathItem

public final class ArrayPathItem extends LocalPathItem
Direct path item (see ObjectPath, which describes transition to the PdfArray element which is now a currently comparing direct object.
  • Constructor Details

    • ArrayPathItem

      public ArrayPathItem (int index)
      Creates an instance of the ArrayPathItem.
      Parameters:
      index - the index which defines element of the PdfArray to which the transition was performed.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals (Object obj)
      Overrides:
      equals in class Object
    • getIndex

      public int getIndex()
      The index which defines element of the PdfArray to which the transition was performed. See ArrayPathItem for more info.
      Returns:
      the index which defines element of the array to which the transition was performed
    • toXmlNode

      protected Node toXmlNode (Document document)
      Description copied from class: LocalPathItem
      Creates an xml node that describes this direct path item.
      Specified by:
      toXmlNode in class LocalPathItem
      Parameters:
      document - xml document, to which this xml node will be added.
      Returns:
      an xml node describing direct path item.