Class EntityImpl

java.lang.Object
org.apache.harmony.xml.dom.NodeImpl
org.apache.harmony.xml.dom.EntityImpl
All Implemented Interfaces:
Entity, Node

public class EntityImpl
extends NodeImpl
implements Entity
Provides a straightforward implementation of the corresponding W3C DOM interface. The class is used internally only, thus only notable members that are not in the original interface are documented (the W3C docs are quite extensive). Hope that's ok.

Some of the fields may have package visibility, so other classes belonging to the DOM implementation can easily access them while maintaining the DOM tree structure.

  • Method Details

    • getNodeName

      public String getNodeName()
      Description copied from interface: Node
      The name of this node, depending on its type; see the table above.
      Specified by:
      getNodeName in interface Node
      Overrides:
      getNodeName in class NodeImpl
    • getNodeType

      public short getNodeType()
      Description copied from interface: Node
      A code representing the type of the underlying object, as defined above.
      Specified by:
      getNodeType in interface Node
      Specified by:
      getNodeType in class NodeImpl
    • getNotationName

      public String getNotationName()
      Description copied from interface: Entity
      For unparsed entities, the name of the notation for the entity. For parsed entities, this is null.
      Specified by:
      getNotationName in interface Entity
    • getPublicId

      public String getPublicId()
      Description copied from interface: Entity
      The public identifier associated with the entity if specified, and null otherwise.
      Specified by:
      getPublicId in interface Entity
    • getSystemId

      public String getSystemId()
      Description copied from interface: Entity
      The system identifier associated with the entity if specified, and null otherwise. This may be an absolute URI or not.
      Specified by:
      getSystemId in interface Entity
    • getInputEncoding

      public String getInputEncoding()
      Description copied from interface: Entity
      An attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This is null if it an entity from the internal subset or if it is not known.
      Specified by:
      getInputEncoding in interface Entity
    • getXmlEncoding

      public String getXmlEncoding()
      Description copied from interface: Entity
      An attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This is null otherwise.
      Specified by:
      getXmlEncoding in interface Entity
    • getXmlVersion

      public String getXmlVersion()
      Description copied from interface: Entity
      An attribute specifying, as part of the text declaration, the version number of this entity, when it is an external parsed entity. This is null otherwise.
      Specified by:
      getXmlVersion in interface Entity