public class DocumentTypeImpl extends LeafNode implements DocumentType, OMDocType, OMNodeEx
factory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIED
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
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Constructor and Description |
---|
DocumentTypeImpl(String rootName,
String publicId,
String systemId,
String internalSubset,
OMFactory factory) |
Modifier and Type | Method and Description |
---|---|
NamedNodeMap |
getEntities() |
String |
getInternalSubset()
Get the internal subset.
|
String |
getName() |
String |
getNodeName() |
short |
getNodeType() |
NamedNodeMap |
getNotations() |
String |
getPublicId()
Get the public ID of the external subset.
|
String |
getRootName()
Get the root name, i.e.
|
String |
getSystemId()
Get the system ID of the external subset.
|
int |
getType()
Returns the type of node.
|
void |
internalSerialize(XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
appendChild, build, discard, getBuilder, getChildNodes, getIParentNode, getNextOMSibling, getNextSibling, insertBefore, isComplete, lookupNamespaceURI, removeChild, replaceChild, setComplete
buildWithAttachments, clone, cloneNode, close, compareDocumentPosition, detach, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousOMSibling, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setNextOMSibling, setNodeValue, setParent, setParent, setPrefix, setPreviousOMSibling, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
getNextOMSiblingIfAvailable, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
build, close, isComplete, serialize, serialize, serializeAndConsume
clone, getOMFactory
public String getNodeName()
getNodeName
in interface Node
public short getNodeType()
getNodeType
in interface Node
public void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMNodeEx
OMSerializable.serialize(XMLStreamWriter, boolean)
instead.internalSerialize
in interface OMNodeEx
internalSerialize
in class NodeImpl
cache
- indicates if caching should be enabledXMLStreamException
public int getType()
OMNode
getType
in interface OMNode
OMNode.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 NamedNodeMap getEntities()
getEntities
in interface DocumentType
public String getInternalSubset()
OMDocType
getInternalSubset
in interface OMDocType
getInternalSubset
in interface DocumentType
null
if there is nonepublic String getName()
getName
in interface DocumentType
public String getRootName()
OMDocType
getRootName
in interface OMDocType
null
public NamedNodeMap getNotations()
getNotations
in interface DocumentType
public String getPublicId()
OMDocType
getPublicId
in interface OMDocType
getPublicId
in interface DocumentType
null
if there is no external subset or no public ID
has been specified for the external subsetpublic String getSystemId()
OMDocType
getSystemId
in interface OMDocType
getSystemId
in interface DocumentType
null
if there is no external subsetCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.