Package org.apache.xml.dtm.ref
Class ExtendedType
java.lang.Object
org.apache.xml.dtm.ref.ExtendedType
public final class ExtendedType extends Object
The class ExtendedType represents an extended type object used by
ExpandedNameTable.
-
Constructor Summary
Constructors Constructor Description ExtendedType(int nodetype, String namespace, String localName)Create an ExtendedType object from node type, namespace and local name.ExtendedType(int nodetype, String namespace, String localName, int hash)Create an ExtendedType object from node type, namespace, local name and a given hash code. -
Method Summary
Modifier and Type Method Description booleanequals(ExtendedType other)Test if this ExtendedType object is equal to the given ExtendedType.StringgetLocalName()Return the local nameStringgetNamespace()Return the namespaceintgetNodeType()Return the node typeinthashCode()Override the hashCode() method in the Object classprotected voidredefine(int nodetype, String namespace, String localName)Redefine this ExtendedType object to represent a different extended type.protected voidredefine(int nodetype, String namespace, String localName, int hash)Redefine this ExtendedType object to represent a different extended type.
-
Constructor Details
-
ExtendedType
Create an ExtendedType object from node type, namespace and local name. The hash code is calculated from the node type, namespace and local name.- Parameters:
nodetype- Type of the nodenamespace- Namespace of the nodelocalName- Local name of the node
-
ExtendedType
Create an ExtendedType object from node type, namespace, local name and a given hash code.- Parameters:
nodetype- Type of the nodenamespace- Namespace of the nodelocalName- Local name of the nodehash- The given hash code
-
-
Method Details
-
redefine
Redefine this ExtendedType object to represent a different extended type. This is intended to be used ONLY on the hashET object. Using it elsewhere will mess up existing hashtable entries! -
redefine
Redefine this ExtendedType object to represent a different extended type. This is intended to be used ONLY on the hashET object. Using it elsewhere will mess up existing hashtable entries! -
hashCode
public int hashCode()Override the hashCode() method in the Object class- Overrides:
hashCodein classObject- Returns:
- this object's hash code.
- See Also:
Object.equals(java.lang.Object)
-
equals
Test if this ExtendedType object is equal to the given ExtendedType.- Parameters:
other- The other ExtendedType object to test for equality- Returns:
- true if the two ExtendedType objects are equal.
-
getNodeType
public int getNodeType()Return the node type -
getLocalName
Return the local name -
getNamespace
Return the namespace
-