Package org.apache.xml.dtm.ref
Class ExtendedType
- java.lang.Object
-
- org.apache.xml.dtm.ref.ExtendedType
-
public final class ExtendedType extends java.lang.Object
The class ExtendedType represents an extended type object used by ExpandedNameTable.
-
-
Constructor Summary
Constructors Constructor Description ExtendedType(int nodetype, java.lang.String namespace, java.lang.String localName)
Create an ExtendedType object from node type, namespace and local name.ExtendedType(int nodetype, java.lang.String namespace, java.lang.String localName, int hash)
Create an ExtendedType object from node type, namespace, local name and a given hash code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(ExtendedType other)
Test if this ExtendedType object is equal to the given ExtendedType.java.lang.String
getLocalName()
Return the local namejava.lang.String
getNamespace()
Return the namespaceint
getNodeType()
Return the node typeint
hashCode()
Override the hashCode() method in the Object class
-
-
-
Constructor Detail
-
ExtendedType
public ExtendedType(int nodetype, java.lang.String namespace, java.lang.String localName)
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
public ExtendedType(int nodetype, java.lang.String namespace, java.lang.String localName, int hash)
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 Detail
-
hashCode
public int hashCode()
Override the hashCode() method in the Object class- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(ExtendedType other)
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
public java.lang.String getLocalName()
Return the local name
-
getNamespace
public java.lang.String getNamespace()
Return the namespace
-
-