Package org.apache.batik.dom.util
Class DocumentDescriptor
- java.lang.Object
-
- org.apache.batik.dom.util.DocumentDescriptor
-
public class DocumentDescriptor extends java.lang.ObjectThis class contains informations about a document.- Version:
- $Id: DocumentDescriptor.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDocumentDescriptor.EntryTo manage collisions
-
Field Summary
Fields Modifier and Type Field Description protected intcountThe number of entriesprotected static intINITIAL_CAPACITYThe table initial capacityprotected DocumentDescriptor.Entry[]tableThe underlying array
-
Constructor Summary
Constructors Constructor Description DocumentDescriptor()Creates a new table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLocationColumn(org.w3c.dom.Element elt)Returns the location column in the source file of the end element.intgetLocationLine(org.w3c.dom.Element elt)Returns the location line in the source file of the end element.intgetNumberOfElements()Returns the number of elements in the document.protected voidrehash()Rehash the tableprotected voidremoveEntry(DocumentDescriptor.Entry e)voidsetLocation(org.w3c.dom.Element elt, int line, int col)Sets the location in the source file of the end element.
-
-
-
Field Detail
-
INITIAL_CAPACITY
protected static final int INITIAL_CAPACITY
The table initial capacity- See Also:
- Constant Field Values
-
table
protected DocumentDescriptor.Entry[] table
The underlying array
-
count
protected int count
The number of entries
-
-
Method Detail
-
getNumberOfElements
public int getNumberOfElements()
Returns the number of elements in the document.
-
getLocationLine
public int getLocationLine(org.w3c.dom.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(org.w3c.dom.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(org.w3c.dom.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)
-
-