org.jsoup.nodes
Class XmlDeclaration

java.lang.Object
  extended by org.jsoup.nodes.Node
      extended by org.jsoup.nodes.XmlDeclaration
All Implemented Interfaces:
Cloneable

public class XmlDeclaration
extends Node

An XML Declaration.

Author:
Jonathan Hedley, jonathan@hedley.net

Constructor Summary
XmlDeclaration(String data, String baseUri, boolean isProcessingInstruction)
          Create a new XML declaration
 
Method Summary
 String getWholeDeclaration()
          Get the unencoded XML declaration.
 String nodeName()
          Get the node name of this node.
 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, traverse, unwrap, wrap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlDeclaration

public XmlDeclaration(String data,
                      String baseUri,
                      boolean isProcessingInstruction)
Create a new XML declaration

Parameters:
data - data
baseUri - base uri
isProcessingInstruction - is processing instruction
Method Detail

nodeName

public 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 String getWholeDeclaration()
Get the unencoded XML declaration.

Returns:
XML declaration

toString

public String toString()
Overrides:
toString in class Node


Copyright © 2009-2012 Jonathan Hedley. All Rights Reserved.