Class DocumentDescriptor

java.lang.Object
org.apache.batik.dom.util.DocumentDescriptor

public class DocumentDescriptor extends Object
This class contains informations about a document.
  • Field Details

    • INITIAL_CAPACITY

      protected static final int INITIAL_CAPACITY
      The table initial capacity
      See Also:
    • table

      protected DocumentDescriptor.Entry[] table
      The underlying array
    • count

      protected int count
      The number of entries
  • Constructor Details

    • DocumentDescriptor

      public DocumentDescriptor()
      Creates a new table.
  • Method Details

    • getNumberOfElements

      public int getNumberOfElements()
      Returns the number of elements in the document.
    • getLocationLine

      public int getLocationLine(Element elt)
      Returns the location line in the source file of the end element.
      Returns:
      zero if the information is unknown.
    • getLocationColumn

      public int getLocationColumn(Element elt)
      Returns the location column in the source file of the end element.
      Returns:
      zero if the information is unknown.
    • setLocation

      public void setLocation(Element elt, int line, int col)
      Sets the location in the source file of the end element.
    • rehash

      protected void rehash()
      Rehash the table
    • removeEntry

      protected void removeEntry(DocumentDescriptor.Entry e)