DBVIEW
org.dbview.utils.Jdom Class Reference

List of all members.

Static Public Member Functions

static String getTextOrCdata (Element in_element) throws Exception
static String print (Element in_element) throws Exception
static String print (Document in_doc) throws Exception

Static Private Attributes

static Filter __filter_text = new ContentFilter(ContentFilter.TEXT)
static Filter __filter_cdata = new ContentFilter(ContentFilter.CDATA)

Detailed Description

This class implements utilities used to manipulate XML through JDOM.

Author:
Denis Beurive

Definition at line 34 of file Jdom.java.


Member Function Documentation

static String org.dbview.utils.Jdom.getTextOrCdata ( Element  in_element) throws Exception [static]

This method extracts the content of a given element. It assumes that it is a CDTA or a TEXT.

Parameters:
in_elementElement
Returns:
The method may return: o A string that represents the content of the element. o null, if the element is empty or if the specified element is null.

Definition at line 56 of file Jdom.java.

static String org.dbview.utils.Jdom.print ( Element  in_element) throws Exception [static]

Prints a XML element.

Parameters:
in_elementXML element to print.
Returns:
The method returns a string that represents the XML element.
Exceptions:
Exception

Definition at line 82 of file Jdom.java.

static String org.dbview.utils.Jdom.print ( Document  in_doc) throws Exception [static]

Prints a XML document.

Parameters:
in_docXML document to print.
Returns:
The method returns a string that represents the XML document.

Definition at line 94 of file Jdom.java.


Member Data Documentation

Filter org.dbview.utils.Jdom.__filter_cdata = new ContentFilter(ContentFilter.CDATA) [static, private]

Filter for CDATA.

See also:
JDOM documentation.

Definition at line 46 of file Jdom.java.

Referenced by org.dbview.utils.Jdom.getTextOrCdata().

Filter org.dbview.utils.Jdom.__filter_text = new ContentFilter(ContentFilter.TEXT) [static, private]

Filter for TEXT.

See also:
JDOM documentation.

Definition at line 40 of file Jdom.java.

Referenced by org.dbview.utils.Jdom.getTextOrCdata().


The documentation for this class was generated from the following file: