public class XmlDeclaration extends Node
Modifier and Type | Field and Description |
---|---|
private boolean |
isProcessingInstruction |
private java.lang.String |
name |
attributes, baseUri, childNodes, parentNode, siblingIndex
Constructor and Description |
---|
XmlDeclaration(java.lang.String name,
java.lang.String baseUri,
boolean isProcessingInstruction)
Create a new XML declaration
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getWholeDeclaration()
Get the unencoded XML declaration.
|
java.lang.String |
name()
Get the name of this declaration.
|
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 |
toString() |
absUrl, addChildren, addChildren, after, after, attr, attr, attributes, baseUri, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, childNodeSize, clearAttributes, clone, doClone, ensureChildNodes, equals, getOutputSettings, hasAttr, hasSameValue, html, indent, nextSibling, nodelistChanged, outerHtml, outerHtml, ownerDocument, parent, parentNode, previousSibling, remove, removeAttr, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, traverse, unwrap, wrap
private final java.lang.String name
private final boolean isProcessingInstruction
public XmlDeclaration(java.lang.String name, java.lang.String baseUri, boolean isProcessingInstruction)
name
- of declarationbaseUri
- base uriisProcessingInstruction
- is processing instructionpublic java.lang.String nodeName()
Node
public java.lang.String name()
public java.lang.String getWholeDeclaration()
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