@DOMNameAttribute(name="Entity") @DOMObjectAttribute public class Entity extends Node
Represents a known entity, either parsed or unparsed, in an XML document.
Node.Flags
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged, PropertyChangedDelegate
Constructor and Description |
---|
Entity(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName,
java.lang.String inputEncoding,
java.lang.String xmlEncoding,
java.lang.String xmlVersion,
Document doc)
Initializes a new instance of the
Entity class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInputEncoding()
An attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity.
|
java.lang.String |
getNodeName()
The name of this node, depending on its type.
|
int |
getNodeType()
A code representing the type of the underlying object.
|
java.lang.String |
getNotationName()
For unparsed entities, the name of the notation for the entity.
|
java.lang.String |
getPublicId()
The public identifier associated with the entity if specified, and null otherwise.
|
java.lang.String |
getSystemId()
The system identifier associated with the entity if specified, and null otherwise.
|
java.lang.String |
getXmlEncoding()
An attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity.
|
java.lang.String |
getXmlVersion()
An attribute specifying, as part of the text declaration, the version number of this entity, when it is an external parsed entity.
|
adoptNode, appendChild, cloneNode, deepClone, dispose, finalize, getAttributes, getBaseURI, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRegisteredObservers, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setNodeValue, setParentNode, setPrefix, setTextContent, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public Entity(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName, java.lang.String inputEncoding, java.lang.String xmlEncoding, java.lang.String xmlVersion, Document doc)
Initializes a new instance of the Entity
class.
name
- The entity name.publicId
- The public id.systemId
- The system id.notationName
- Name of the notation.inputEncoding
- The input encoding.xmlEncoding
- The XML encoding.xmlVersion
- The XML version.doc
- The document.@DOMNameAttribute(name="publicId") public java.lang.String getPublicId()
The public identifier associated with the entity if specified, and null otherwise.
Value: The public identifier.@DOMNameAttribute(name="systemId") public java.lang.String getSystemId()
The system identifier associated with the entity if specified, and null otherwise. This may be an absolute URI or not.
Value: The system identifier.@DOMNameAttribute(name="notationName") public java.lang.String getNotationName()
For unparsed entities, the name of the notation for the entity. For parsed entities, this is null.
Value: The name of the notation.@DOMNameAttribute(name="inputEncoding") public java.lang.String getInputEncoding()
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.
Value: The input encoding.@DOMNameAttribute(name="xmlEncoding") public java.lang.String getXmlEncoding()
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.
Value: The XML encoding.@DOMNameAttribute(name="xmlVersion") public java.lang.String getXmlVersion()
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.
Value: The XML version.@DOMNameAttribute(name="NodeName") public java.lang.String getNodeName()
The name of this node, depending on its type.
Value: The name of the node.getNodeName
in class Node
public int getNodeType()
A code representing the type of the underlying object.
Value: The type of the node.getNodeType
in class Node