com.sage.orion.sdata.servlet
Class JiBXParser

java.lang.Object
  extended by com.sage.orion.sdata.servlet.JiBXParser
Direct Known Subclasses:
ServiceMapFileXMLParser

public class JiBXParser
extends java.lang.Object

A helper class to parser xml files using the JiBX Library (http://jibx.sourceforge.net/). In order to use this class a JiBX binding definition xml file is required and an implementing java object class.

Author:
cliwa01

Constructor Summary
JiBXParser()
           
 
Method Summary
static java.lang.Object parse(java.io.File file, java.lang.Class<?> c)
          Parses the given xml file using the JiBX Library.
static java.lang.Object parse(java.lang.String filename, java.lang.Class<?> c)
          Parses the given xml file using the JiBX Library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiBXParser

public JiBXParser()
Method Detail

parse

public static java.lang.Object parse(java.lang.String filename,
                                     java.lang.Class<?> c)
Parses the given xml file using the JiBX Library.

Parameters:
filename - the xml file to be parsed.
c - the class to bind the xml data.
Returns:
an Object of the appropriate type, as specified by the file passed in and the JiBX bindings.

parse

public static java.lang.Object parse(java.io.File file,
                                     java.lang.Class<?> c)
Parses the given xml file using the JiBX Library.

Parameters:
file - the xml file to be parsed.
c - the class to bind the xml data.
Returns:
an Object of the appropriate type, as specified by the file passed in and the JiBX bindings.


Copyright © 2011 Sage Software, Inc. All rights reserved.