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.StringNAMEprivate static java.lang.StringPUB_SYS_KEYprivate static java.lang.StringPUBLIC_IDstatic java.lang.StringPUBLIC_KEYprivate static java.lang.StringSYSTEM_IDstatic java.lang.StringSYSTEM_KEY-
Fields inherited from class org.jsoup.nodes.Node
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 booleanhas(java.lang.String attribute)java.lang.Stringname()Get this doctype's name (when set, or empty string)java.lang.StringnodeName()Get the node name of this node.(package private) voidouterHtmlHead(java.lang.Appendable accum, int depth, Document.OutputSettings out)Get the outer HTML of this node.(package private) voidouterHtmlTail(java.lang.Appendable accum, int depth, Document.OutputSettings out)java.lang.StringpublicId()Get this doctype's Public ID (when set, or empty string)voidsetPubSysKey(java.lang.String value)java.lang.StringsystemId()Get this doctype's System ID (when set, or empty string)private voidupdatePubSyskey()-
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, 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
-
-
-
-
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:NodeGet 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.IOExceptionDescription copied from class:NodeGet the outer HTML of this node.- Specified by:
outerHtmlHeadin 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:
outerHtmlTailin classNode
-
has
private boolean has(java.lang.String attribute)
-
-