com.jrefinery.report.io
Class ReportParserUtil

java.lang.Object
  extended bycom.jrefinery.report.io.ReportParserUtil

public class ReportParserUtil
extends java.lang.Object

A helper class to make parsing the xml files a lot easier.

Author:
Thomas Morgner

Constructor Summary
ReportParserUtil()
           
 
Method Summary
static ElementAlignment parseHorizontalElementAlignment(java.lang.String value)
          Parses a horizontal alignment value.
static ElementAlignment parseVerticalElementAlignment(java.lang.String value)
          Parses a vertical alignment value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportParserUtil

public ReportParserUtil()
Method Detail

parseVerticalElementAlignment

public static ElementAlignment parseVerticalElementAlignment(java.lang.String value)
                                                      throws org.xml.sax.SAXException
Parses a vertical alignment value.

Parameters:
value - the text to parse.
Returns:
the element alignment.
Throws:
org.xml.sax.SAXException - if the alignment value is not recognised.

parseHorizontalElementAlignment

public static ElementAlignment parseHorizontalElementAlignment(java.lang.String value)
                                                        throws org.xml.sax.SAXException
Parses a horizontal alignment value.

Parameters:
value - the text to parse.
Returns:
the element alignment.
Throws:
org.xml.sax.SAXException - if the alignment value is not recognised.