public class OMDocTypeImpl extends OMLeafNode implements OMDocType
nextSibling, parent, previousSibling
factory
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Constructor and Description |
---|
OMDocTypeImpl(OMContainer parentNode,
String rootName,
String publicId,
String systemId,
String internalSubset,
OMFactory factory,
boolean fromBuilder) |
Modifier and Type | Method and Description |
---|---|
String |
getInternalSubset()
Get the internal subset.
|
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.
|
build, discard, getBuilder, isComplete, setComplete
buildWithAttachments, clone, detach, getIParentNode, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setNextOMSibling, setParent, setPreviousOMSibling
close, getOMFactory, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 final 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 void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMSerializableImpl
internalSerialize
in interface OMNodeEx
internalSerialize
in class OMSerializableImpl
cache
- indicates if caching should be enabledXMLStreamException
public String getRootName()
OMDocType
getRootName
in interface OMDocType
null
public String getPublicId()
OMDocType
getPublicId
in interface OMDocType
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
null
if there is no external subsetpublic String getInternalSubset()
OMDocType
getInternalSubset
in interface OMDocType
null
if there is noneCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.