@DOMObjectAttribute @DOMNameAttribute(name="DocumentType") public class DocumentType extends Node
The DocumentType provides an interface to the list of entities that are defined for the 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 |
---|
DocumentType(String name,
String publicId,
String systemId,
String internalSubset,
Document doc)
Initializes a new instance of the
DocumentType class. |
Modifier and Type | Method and Description |
---|---|
String |
getInternalSubset()
The internal subset as a string, or null if there is none.
|
String |
getName()
The name of DTD; i.e., the name immediately following the DOCTYPE keyword.
|
String |
getNodeName()
The name of this node, depending on its type.
|
int |
getNodeType()
A code representing the type of the underlying object.
|
String |
getPublicId()
The public identifier of the external subset.
|
String |
getSystemId()
The system identifier of the external subset.
|
String |
toString()
Returns a
String that represents this instance. |
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
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public DocumentType(String name, String publicId, String systemId, String internalSubset, Document doc)
Initializes a new instance of the DocumentType
class.
name
- The entity name.publicId
- The public id.systemId
- The system id.internalSubset
- The internal subset.doc
- The document.@DOMNameAttribute(name="name") public String getName()
The name of DTD; i.e., the name immediately following the DOCTYPE keyword.
Value: The node name.@DOMNameAttribute(name="publicId") public String getPublicId()
The public identifier of the external subset.
Value: The public identifier.@DOMNameAttribute(name="systemId") public String getSystemId()
The system identifier of the external subset. This may be an absolute URI or not.
Value: The system identifier.@DOMNameAttribute(name="internalSubset") public String getInternalSubset()
The internal subset as a string, or null if there is none.
Value: The internal subset.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