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.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
has(java.lang.String attribute) |
java.lang.String |
name()
Get this doctype's name (when set, or empty string)
|
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) |
java.lang.String |
publicId()
Get this doctype's Public ID (when set, or empty string)
|
void |
setPubSysKey(java.lang.String value) |
java.lang.String |
systemId()
Get this doctype's System ID (when set, or empty string)
|
private void |
updatePubSyskey() |
absUrl, attr, attr, attributes, baseUri, childNodeSize, coreValue, coreValue, doClone, doSetBaseUri, empty, ensureChildNodes, hasAttr, hasAttributes, removeAttr
addChildren, addChildren, after, after, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, clearAttributes, clone, 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, 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)
name
- the doctype's namepublicId
- the doctype's public IDsystemId
- the doctype's system IDpublic void setPubSysKey(java.lang.String value)
private void updatePubSyskey()
public java.lang.String name()
public java.lang.String publicId()
public java.lang.String systemId()
public 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)