public class DocumentTypeImpl extends LeafNode implements org.w3c.dom.DocumentType, OMDocType, OMNodeEx
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
internalSubset |
private java.lang.String |
publicId |
private java.lang.String |
rootName |
private java.lang.String |
systemId |
factory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIEDATTRIBUTE_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_NODECDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE| Constructor and Description |
|---|
DocumentTypeImpl(java.lang.String rootName,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String internalSubset,
OMFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
(package private) LeafNode |
createClone() |
org.w3c.dom.NamedNodeMap |
getEntities() |
java.lang.String |
getInternalSubset()
Get the internal subset.
|
java.lang.String |
getName() |
java.lang.String |
getNodeName() |
short |
getNodeType() |
org.w3c.dom.NamedNodeMap |
getNotations() |
java.lang.String |
getPublicId()
Get the public ID of the external subset.
|
java.lang.String |
getRootName()
Get the root name, i.e.
|
java.lang.String |
getSystemId()
Get the system ID of the external subset.
|
int |
getType()
Returns the type of node.
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
appendChild, beforeClone, build, clone, discard, getBuilder, getChildNodes, getIParentNode, getNextOMSibling, getNextSibling, insertBefore, internalGetNextSibling, internalGetOwnerNode, internalGetPreviousSibling, internalSetNextSibling, internalSetOwnerNode, internalSetPreviousSibling, isComplete, lookupNamespaceURI, removeChild, replaceChild, setCompletebuildWithAttachments, checkSameOwnerDocument, clone, cloneNode, close, compareDocumentPosition, detach, detach, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousOMSibling, getPreviousSibling, getTextContent, getTextContent, getUserData, hasAttributes, hasChildNodes, hasParent, hasParent, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isSameNode, isSpecified, isSpecified, isSupported, lookupPrefix, normalize, normalize, ownerDocument, parentNode, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setNextOMSibling, setNodeValue, setOwnerDocument, setParent, setParent, setPrefix, setPreviousOMSibling, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, 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, setUserDatagetNextOMSiblingIfAvailable, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSiblingbuildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumebuild, close, isComplete, serialize, serialize, serializeAndConsumeclone, getOMFactoryprivate final java.lang.String rootName
private final java.lang.String publicId
private final java.lang.String systemId
private final java.lang.String internalSubset
public DocumentTypeImpl(java.lang.String rootName,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String internalSubset,
OMFactory factory)
public java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic short getNodeType()
getNodeType in interface org.w3c.dom.Nodepublic void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
throws javax.xml.stream.XMLStreamException
OMNodeExOMSerializable.serialize(XMLStreamWriter, boolean) instead.internalSerialize in interface OMNodeExinternalSerialize in class NodeImplcache - indicates if caching should be enabledjavax.xml.stream.XMLStreamExceptionpublic int getType()
OMNodegetType in interface OMNodeOMNode.ELEMENT_NODE, OMNode.TEXT_NODE, OMNode.CDATA_SECTION_NODE,
OMNode.COMMENT_NODE, OMNode.DTD_NODE, OMNode.PI_NODE, OMNode.ENTITY_REFERENCE_NODE or OMNode.SPACE_NODE.public org.w3c.dom.NamedNodeMap getEntities()
getEntities in interface org.w3c.dom.DocumentTypepublic java.lang.String getInternalSubset()
OMDocTypegetInternalSubset in interface OMDocTypegetInternalSubset in interface org.w3c.dom.DocumentTypenull if there is nonepublic java.lang.String getName()
getName in interface org.w3c.dom.DocumentTypepublic java.lang.String getRootName()
OMDocTypegetRootName in interface OMDocTypenullpublic org.w3c.dom.NamedNodeMap getNotations()
getNotations in interface org.w3c.dom.DocumentTypepublic java.lang.String getPublicId()
OMDocTypegetPublicId in interface OMDocTypegetPublicId in interface org.w3c.dom.DocumentTypenull if there is no external subset or no public ID
has been specified for the external subsetpublic java.lang.String getSystemId()
OMDocTypegetSystemId in interface OMDocTypegetSystemId in interface org.w3c.dom.DocumentTypenull if there is no external subsetLeafNode createClone()
createClone in class LeafNode