org.apache.xml.dtm.ref
public class ExpandedNameTable extends Object
Field Summary | |
---|---|
static int | ATTRIBUTE |
static int | CDATA_SECTION |
static int | COMMENT |
static int | DOCUMENT |
static int | DOCUMENT_FRAGMENT |
static int | DOCUMENT_TYPE |
static int | ELEMENT |
static int | ENTITY |
static int | ENTITY_REFERENCE |
static int | NAMESPACE |
static int | NOTATION |
static int | PROCESSING_INSTRUCTION |
static int | TEXT |
Constructor Summary | |
---|---|
ExpandedNameTable()
Create an expanded name table. |
Method Summary | |
---|---|
int | getExpandedTypeID(String namespace, String localName, int type)
Given an expanded name represented by namespace, local name and node type,
return an ID. |
int | getExpandedTypeID(String namespace, String localName, int type, boolean searchOnly)
Given an expanded name represented by namespace, local name and node type,
return an ID. |
int | getExpandedTypeID(int type)
Given a type, return an expanded name ID.Any additional nodes that are
created that have this expanded name will use this ID.
|
ExtendedType[] | getExtendedTypes()
Return the array of extended types
|
String | getLocalName(int ExpandedNameID)
Given an expanded-name ID, return the local name part.
|
int | getLocalNameID(int ExpandedNameID)
Given an expanded-name ID, return the local name ID.
|
String | getNamespace(int ExpandedNameID)
Given an expanded-name ID, return the namespace URI part.
|
int | getNamespaceID(int ExpandedNameID)
Given an expanded-name ID, return the namespace URI ID.
|
int | getSize()
Return the size of the ExpandedNameTable
|
short | getType(int ExpandedNameID)
Given an expanded-name ID, return the local name ID.
|
Parameters: namespace The namespace localName The local name type The node type
Returns: the expanded-name id of the node.
If searchOnly is true, we will return -1 if the name is not found in the table, otherwise the name is added to the table and the expanded name id of the new entry is returned.
Parameters: namespace The namespace localName The local name type The node type searchOnly If it is true, we will only search for the expanded name. -1 is return is the name is not found.
Returns: the expanded-name id of the node.
Returns: the expanded-name id of the node.
Returns: The array of extended types
Parameters: ExpandedNameID an ID that represents an expanded-name.
Returns: String Local name of this node, or null if the node has no name.
Parameters: ExpandedNameID an ID that represents an expanded-name.
Returns: The id of this local name.
Parameters: ExpandedNameID an ID that represents an expanded-name.
Returns: String URI value of this node's namespace, or null if no namespace was resolved.
Parameters: ExpandedNameID an ID that represents an expanded-name.
Returns: The id of this namespace.
Returns: The size of the ExpandedNameTable
Parameters: ExpandedNameID an ID that represents an expanded-name.
Returns: The id of this local name.