Class ExtendedType


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

      Fields 
      Modifier and Type Field Description
      private int hash  
      private java.lang.String localName  
      private java.lang.String namespace  
      private int nodetype  
    • 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()  
      java.lang.String getNamespace()  
      int getNodeType()  
      int hashCode()
      (package private) void redefine​(int nodetype, java.lang.String namespace, java.lang.String localName, int hash)
      Redefine this ExtendedType object to represent a different extended type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nodetype

        private int nodetype
      • namespace

        private java.lang.String namespace
      • localName

        private java.lang.String localName
      • hash

        private int hash
    • 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 node
        namespace - Namespace of the node
        localName - 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 node
        namespace - Namespace of the node
        localName - Local name of the node
        hash - The given hash code
    • Method Detail

      • redefine

        void redefine​(int nodetype,
                      java.lang.String namespace,
                      java.lang.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 java.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()
        Returns:
        the node type
      • getLocalName

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

        public java.lang.String getNamespace()
        Returns:
        the namespace