public class DocumentType extends Node
<!DOCTYPE>
node.Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
NAME |
private static java.lang.String |
PUB_SYS_KEY |
private static java.lang.String |
PUBLIC_ID |
static java.lang.String |
PUBLIC_KEY |
private static java.lang.String |
SYSTEM_ID |
static java.lang.String |
SYSTEM_KEY |
attributes, baseUri, childNodes, parentNode, siblingIndex
Constructor and Description |
---|
DocumentType(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseUri)
Create a new doctype element.
|
DocumentType(java.lang.String name,
java.lang.String pubSysKey,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseUri)
Create a new doctype element.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
has(java.lang.String attribute) |
java.lang.String |
nodeName()
Get the node name of this node.
|
(package private) void |
outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out)
Get the outer HTML of this node.
|
(package private) void |
outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
absUrl, addChildren, addChildren, after, after, attr, attr, attributes, baseUri, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, childNodeSize, clearAttributes, clone, doClone, ensureChildNodes, equals, getOutputSettings, hasAttr, hasSameValue, html, indent, nextSibling, nodelistChanged, outerHtml, outerHtml, ownerDocument, parent, parentNode, previousSibling, remove, removeAttr, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, toString, traverse, unwrap, wrap
public static final java.lang.String PUBLIC_KEY
public static final java.lang.String SYSTEM_KEY
private static final java.lang.String NAME
private static final java.lang.String PUB_SYS_KEY
private static final java.lang.String PUBLIC_ID
private static final java.lang.String SYSTEM_ID
public DocumentType(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String baseUri)
name
- the doctype's namepublicId
- the doctype's public IDsystemId
- the doctype's system IDbaseUri
- the doctype's base URIpublic DocumentType(java.lang.String name, java.lang.String pubSysKey, java.lang.String publicId, java.lang.String systemId, java.lang.String baseUri)
name
- the doctype's namepublicId
- the doctype's public IDsystemId
- the doctype's system IDbaseUri
- the doctype's base URIpublic java.lang.String nodeName()
Node
void outerHtmlHead(java.lang.Appendable accum, int depth, Document.OutputSettings out) throws java.io.IOException
Node
outerHtmlHead
in class Node
accum
- accumulator to place HTML intojava.io.IOException
- if appending to the given accumulator fails.void outerHtmlTail(java.lang.Appendable accum, int depth, Document.OutputSettings out)
outerHtmlTail
in class Node
private boolean has(java.lang.String attribute)