Package org.apache.harmony.xml.dom
Class EntityImpl
- java.lang.Object
-
- org.apache.harmony.xml.dom.NodeImpl
-
- org.apache.harmony.xml.dom.EntityImpl
-
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.
-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInputEncoding()An attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity.StringgetNodeName()The name of this node, depending on its type; see the table above.shortgetNodeType()A code representing the type of the underlying object, as defined above.StringgetNotationName()For unparsed entities, the name of the notation for the entity.StringgetPublicId()The public identifier associated with the entity if specified, andnullotherwise.StringgetSystemId()The system identifier associated with the entity if specified, andnullotherwise.StringgetXmlEncoding()An attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity.StringgetXmlVersion()An attribute specifying, as part of the text declaration, the version number of this entity, when it is an external parsed entity.-
Methods inherited from class org.apache.harmony.xml.dom.NodeImpl
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Method Detail
-
getNodeName
public String getNodeName()
Description copied from interface:NodeThe name of this node, depending on its type; see the table above.- Specified by:
getNodeNamein interfaceNode- Overrides:
getNodeNamein classNodeImpl
-
getNodeType
public short getNodeType()
Description copied from interface:NodeA code representing the type of the underlying object, as defined above.- Specified by:
getNodeTypein interfaceNode- Specified by:
getNodeTypein classNodeImpl
-
getNotationName
public String getNotationName()
Description copied from interface:EntityFor unparsed entities, the name of the notation for the entity. For parsed entities, this isnull.- Specified by:
getNotationNamein interfaceEntity
-
getPublicId
public String getPublicId()
Description copied from interface:EntityThe public identifier associated with the entity if specified, andnullotherwise.- Specified by:
getPublicIdin interfaceEntity
-
getSystemId
public String getSystemId()
Description copied from interface:EntityThe system identifier associated with the entity if specified, andnullotherwise. This may be an absolute URI or not.- Specified by:
getSystemIdin interfaceEntity
-
getInputEncoding
public String getInputEncoding()
Description copied from interface:EntityAn attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity. This isnullif it an entity from the internal subset or if it is not known.- Specified by:
getInputEncodingin interfaceEntity
-
getXmlEncoding
public String getXmlEncoding()
Description copied from interface:EntityAn attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity. This isnullotherwise.- Specified by:
getXmlEncodingin interfaceEntity
-
getXmlVersion
public String getXmlVersion()
Description copied from interface:EntityAn attribute specifying, as part of the text declaration, the version number of this entity, when it is an external parsed entity. This isnullotherwise.- Specified by:
getXmlVersionin interfaceEntity
-
-