|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jage.platform.config.loader.xml.XmlFileLoader
public class XmlFileLoader
Loads and validates data from XML file. It reads also data from files specified in any include
tags.
Validation is based on the following schema: http://age.iisg.agh.edu.pl/xsd/age-2.5.xsd
Field Summary | |
---|---|
static String |
AGE_SCHEMA_SOURCE
A file name of the schema definition for the AgE configuration file. |
static String |
JAXP_SCHEMA_LANGUAGE
A schema language definition for Java API for XML Processing. |
static String |
JAXP_SCHEMA_SOURCE
A schema source for Java API for XML Processing. |
static String |
W3C_XML_SCHEMA
A namespace for XML Schema. |
Constructor Summary | |
---|---|
XmlFileLoader()
Default constructor. |
Method Summary | |
---|---|
Document |
loadAndValidateDocument(String path)
Loads and validates XML document from specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JAXP_SCHEMA_LANGUAGE
public static final String W3C_XML_SCHEMA
public static final String JAXP_SCHEMA_SOURCE
public static final String AGE_SCHEMA_SOURCE
Constructor Detail |
---|
public XmlFileLoader()
Method Detail |
---|
public Document loadAndValidateDocument(String path) throws ConfigurationException
path
- the root file to read XML data
ConfigurationException
- if any exception occur during loading or validating file. Detailed information about error are
include into this exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |