@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, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged
Constructor and Description |
---|
Entity(String name,
String publicId,
String systemId,
String notationName,
String inputEncoding,
String xmlEncoding,
String xmlVersion,
Document doc)
Initializes a new instance of the
Entity class. |
Modifier and Type | Method and Description |
---|---|
String |
getInputEncoding()
An attribute specifying the encoding used for this entity at the time of parsing, when it is an external parsed entity.
|
String |
getNodeName()
The name of this node, depending on its type.
|
int |
getNodeType()
A code representing the type of the underlying object.
|
String |
getNotationName()
For unparsed entities, the name of the notation for the entity.
|
String |
getPublicId()
The public identifier associated with the entity if specified, and null otherwise.
|
String |
getSystemId()
The system identifier associated with the entity if specified, and null otherwise.
|
String |
getXmlEncoding()
An attribute specifying, as part of the text declaration, the encoding of this entity, when it is an external parsed entity.
|
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, getAttributes, getBaseURI, getChildNodes, 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, setNodeValue, setParentNode, setPrefix, setTextContent, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public Entity(String name, String publicId, String systemId, String notationName, String inputEncoding, String xmlEncoding, 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 String getPublicId()
The public identifier associated with the entity if specified, and null otherwise.
Value: The public identifier.@DOMNameAttribute(name="systemId") public 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 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 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 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 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 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