Class ExtendedType

java.lang.Object
org.htmlunit.xpath.xml.dtm.ref.ExtendedType

public final class ExtendedType extends Object
The class ExtendedType represents an extended type object used by ExpandedNameTable.
  • Field Details

    • nodetype

      private int nodetype
    • namespace

      private String namespace
    • localName

      private String localName
    • hash

      private int hash
  • Constructor Details

    • 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 Details

    • redefine

      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!
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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()
      Returns:
      the node type
    • getLocalName

      public String getLocalName()
      Returns:
      the local name
    • getNamespace

      public String getNamespace()
      Returns:
      the namespace