Package org.jsoup.nodes
Class DocumentType
- java.lang.Object
-
- org.jsoup.nodes.Node
-
- org.jsoup.nodes.LeafNode
-
- org.jsoup.nodes.DocumentType
-
- All Implemented Interfaces:
java.lang.Cloneable
public class DocumentType extends LeafNode
A<!DOCTYPE>
node.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class org.jsoup.nodes.Node
EmptyNodes, EmptyString, parentNode, siblingIndex
-
-
Constructor Summary
Constructors Constructor Description DocumentType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
Create a new doctype element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.jsoup.nodes.LeafNode
absUrl, attr, attr, attributes, baseUri, childNodeSize, coreValue, coreValue, doClone, doSetBaseUri, empty, ensureChildNodes, hasAttr, hasAttributes, removeAttr
-
Methods inherited from class org.jsoup.nodes.Node
addChildren, addChildren, after, after, attributesSize, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, clearAttributes, clone, equals, filter, firstChild, forEachNode, hashCode, hasParent, hasSameValue, html, indent, isEffectivelyFirst, lastChild, nameIs, nextSibling, nodelistChanged, nodeStream, nodeStream, normalName, outerHtml, outerHtml, ownerDocument, parent, parentElementIs, parentNameIs, parentNode, previousSibling, remove, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, shallowClone, siblingIndex, siblingNodes, sourceRange, toString, traverse, unwrap, wrap
-
-
-
-
Field Detail
-
PUBLIC_KEY
public static final java.lang.String PUBLIC_KEY
- See Also:
- Constant Field Values
-
SYSTEM_KEY
public static final java.lang.String SYSTEM_KEY
- See Also:
- Constant Field Values
-
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
-
PUB_SYS_KEY
private static final java.lang.String PUB_SYS_KEY
- See Also:
- Constant Field Values
-
PUBLIC_ID
private static final java.lang.String PUBLIC_ID
- See Also:
- Constant Field Values
-
SYSTEM_ID
private static final java.lang.String SYSTEM_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPubSysKey
public void setPubSysKey(java.lang.String value)
-
updatePubSyskey
private void updatePubSyskey()
-
name
public java.lang.String name()
Get this doctype's name (when set, or empty string)- Returns:
- doctype name
-
publicId
public java.lang.String publicId()
Get this doctype's Public ID (when set, or empty string)- Returns:
- doctype Public ID
-
systemId
public java.lang.String systemId()
Get this doctype's System ID (when set, or empty string)- Returns:
- doctype System ID
-
nodeName
public java.lang.String nodeName()
Description copied from class:Node
Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof).
-
outerHtmlHead
void outerHtmlHead(java.lang.Appendable accum, int depth, Document.OutputSettings out) throws java.io.IOException
Description copied from class:Node
Get the outer HTML of this node.- Specified by:
outerHtmlHead
in classNode
- Parameters:
accum
- accumulator to place HTML into- Throws:
java.io.IOException
- if appending to the given accumulator fails.
-
outerHtmlTail
void outerHtmlTail(java.lang.Appendable accum, int depth, Document.OutputSettings out)
- Specified by:
outerHtmlTail
in classNode
-
has
private boolean has(java.lang.String attribute)
-
-