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
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 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)
-
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: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)
-
-