org.jsoup.nodes
Class XmlDeclaration
java.lang.Object
org.jsoup.nodes.Node
org.jsoup.nodes.XmlDeclaration
- All Implemented Interfaces:
- java.lang.Cloneable
public class XmlDeclaration
- extends Node
An XML Declaration.
- Author:
- Jonathan Hedley, jonathan@hedley.net
Constructor Summary |
XmlDeclaration(java.lang.String data,
java.lang.String baseUri,
boolean isProcessingInstruction)
Create a new XML declaration |
Method Summary |
java.lang.String |
getWholeDeclaration()
Get the unencoded XML declaration. |
java.lang.String |
nodeName()
Get the node name of this node. |
java.lang.String |
toString()
|
Methods inherited from class org.jsoup.nodes.Node |
absUrl, addChildren, addChildren, after, after, attr, attr, attributes, baseUri, before, before, childNode, childNodes, childNodesAsArray, clone, doClone, equals, hasAttr, hashCode, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parent, previousSibling, remove, removeAttr, removeChild, replaceChild, replaceWith, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, unwrap, wrap |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
XmlDeclaration
public XmlDeclaration(java.lang.String data,
java.lang.String baseUri,
boolean isProcessingInstruction)
- Create a new XML declaration
- Parameters:
data
- databaseUri
- base uriisProcessingInstruction
- is processing instruction
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).
- Specified by:
nodeName
in class Node
- Returns:
- node name
getWholeDeclaration
public java.lang.String getWholeDeclaration()
- Get the unencoded XML declaration.
- Returns:
- XML declaration
toString
public java.lang.String toString()
- Overrides:
toString
in class Node
Copyright © 2009-2011 Jonathan Hedley. All Rights Reserved.