org.apache.xml.dtm.ref

Class ExtendedType

public final class ExtendedType extends Object

The class ExtendedType represents an extended type object used by ExpandedNameTable.
Constructor Summary
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
booleanequals(ExtendedType other)
Test if this ExtendedType object is equal to the given ExtendedType.
StringgetLocalName()
Return the local name
StringgetNamespace()
Return the namespace
intgetNodeType()
Return the node type
inthashCode()
Override the hashCode() method in the Object class

Constructor Detail

ExtendedType

public ExtendedType(int nodetype, String namespace, 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 node namespace Namespace of the node localName Local name of the node

ExtendedType

public ExtendedType(int nodetype, String namespace, String localName, int hash)
Create an ExtendedType object from node type, namespace, local name and a given hash code.

Parameters: nodetype Type of the node namespace Namespace of the node localName Local name of the node hash The given hash code

Method Detail

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.

getLocalName

public String getLocalName()
Return the local name

getNamespace

public String getNamespace()
Return the namespace

getNodeType

public int getNodeType()
Return the node type

hashCode

public int hashCode()
Override the hashCode() method in the Object class
Copyright B) 2006 Apache XML Project. All Rights Reserved.