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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanhas(java.lang.String attribute)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)voidsetPubSysKey(java.lang.String value)-
Methods inherited from class org.jsoup.nodes.LeafNode
absUrl, attr, attr, attributes, baseUri, childNodeSize, coreValue, coreValue, doSetBaseUri, ensureChildNodes, hasAttr, hasAttributes, removeAttr
-
Methods inherited from class org.jsoup.nodes.Node
addChildren, 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, 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
-
-
Constructor Detail
-
DocumentType
public DocumentType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)Create a new doctype element.- Parameters:
name- the doctype's namepublicId- the doctype's public IDsystemId- the doctype's system ID
-
DocumentType
public DocumentType(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String baseUri)Deprecated.Create a new doctype element.- Parameters:
name- the doctype's namepublicId- the doctype's public IDsystemId- the doctype's system IDbaseUri- unused
-
DocumentType
public DocumentType(java.lang.String name, java.lang.String pubSysKey, java.lang.String publicId, java.lang.String systemId, java.lang.String baseUri)Deprecated.Create a new doctype element.- Parameters:
name- the doctype's namepublicId- the doctype's public IDsystemId- the doctype's system IDbaseUri- unused
-
-
Method Detail
-
setPubSysKey
public void setPubSysKey(java.lang.String value)
-
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)
-
-