APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.dtm.ref

public final Class ExtendedType

extends Object
Class Inheritance

The class ExtendedType represents an extended type object used by ExpandedNameTable.

Field Summary

Modifier and TypeField and Description
private int
private String
private String
private int

Constructor Summary

AccessConstructor and Description
public
ExtendedType(int
Type of the node
nodetype
,
String
Namespace of the node
namespace
,
String
Local name of the node
localName
)

Create an ExtendedType object from node type, namespace and local name.

public
ExtendedType(int
Type of the node
nodetype
,
String
Namespace of the node
namespace
,
String
Local name of the node
localName
,
int
The given hash code
hash
)

Create an ExtendedType object from node type, namespace, local name and a given hash code.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the two ExtendedType objects are equal.
equals
(ExtendedType
The other ExtendedType object to test for equality
other
)

Test if this ExtendedType object is equal to the given ExtendedType.

public String
getLocalName()

Return the local name

public String
getNamespace()

Return the namespace

public int
getNodeType()

Return the node type

public int
hashCode()

Overrides java.lang.Object.hashCode.

Override the hashCode() method in the Object class

protected void
redefine(int nodetype, String namespace, String localName)

Redefine this ExtendedType object to represent a different extended type.

protected void
redefine(int nodetype, String namespace, String localName, int hash)

Redefine this ExtendedType object to represent a different extended type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

hashback to summary
private int hash
localNameback to summary
private String localName
namespaceback to summary
private String namespace
nodetypeback to summary
private int nodetype

Constructor Detail

ExtendedTypeback to summary
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:int

Type of the node

namespace:String

Namespace of the node

localName:String

Local name of the node

ExtendedTypeback to summary
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:int

Type of the node

namespace:String

Namespace of the node

localName:String

Local name of the node

hash:int

The given hash code

Method Detail

equalsback to summary
public boolean equals(ExtendedType other)

Test if this ExtendedType object is equal to the given ExtendedType.

Parameters
other:ExtendedType

The other ExtendedType object to test for equality

Returns:boolean

true if the two ExtendedType objects are equal.

getLocalNameback to summary
public String getLocalName()

Return the local name

getNamespaceback to summary
public String getNamespace()

Return the namespace

getNodeTypeback to summary
public int getNodeType()

Return the node type

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Override the hashCode() method in the Object class

redefineback to summary
protected void redefine(int nodetype, String namespace, String localName)

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!

redefineback to summary
protected void redefine(int nodetype, String namespace, String localName, int hash)

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!