public class DocumentType extends LeafNode
<!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 |
EmptyString, parentNode, siblingIndex| Constructor and Description |
|---|
DocumentType(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Create a new doctype element.
|
DocumentType(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseUri)
Deprecated.
|
DocumentType(java.lang.String name,
java.lang.String pubSysKey,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseUri)
Deprecated.
|
| 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) |
void |
setPubSysKey(java.lang.String value) |
absUrl, attr, attr, attributes, baseUri, childNodeSize, coreValue, coreValue, doSetBaseUri, ensureChildNodes, hasAttr, hasAttributes, removeAttraddChildren, addChildren, after, after, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, clearAttributes, clone, doClone, equals, filter, hasParent, hasSameValue, html, indent, nextSibling, nodelistChanged, outerHtml, outerHtml, ownerDocument, parent, parentNode, previousSibling, remove, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, shallowClone, siblingIndex, siblingNodes, toString, traverse, unwrap, wrappublic 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)
name - the doctype's namepublicId - the doctype's public IDsystemId - the doctype's system IDpublic 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 - unusedpublic 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 - unusedpublic void setPubSysKey(java.lang.String value)
public java.lang.String nodeName()
Nodevoid outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out)
throws java.io.IOException
NodeouterHtmlHead in class Nodeaccum - 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 Nodeprivate boolean has(java.lang.String attribute)