net.sf.daileon.notsupported
Class DomainAnnotationsXmlReader

java.lang.Object
  extended by net.sf.daileon.notsupported.DomainAnnotationsXmlReader

public class DomainAnnotationsXmlReader
extends Object

The DomainAnnotationsXmlReader class is responsible for dealing with XML configuration file, indicated in the command line when Daileon is run.

Version:
1.0 01/01/2010
Author:
Roberto Perillo

Field Summary
private static DaileonConfig daileonConfig
          The DaileonConfig object, that is, the root element of the XML configuration file
private static String JAXB_CONTEXT
          The package where the elements that contain the objects annotated with annotations of the JAXB API can be found
 
Constructor Summary
private DomainAnnotationsXmlReader()
          Class constructor.
 
Method Summary
static DaileonConfig getDaileonConfig()
          Retrieves the DaileonConfig object that corresponds to the root element of the indicated XML configuration file.
static DaileonConfig read(String xmlLocation)
          Reads a given XML file, located in the indicated location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXB_CONTEXT

private static final String JAXB_CONTEXT
The package where the elements that contain the objects annotated with annotations of the JAXB API can be found

See Also:
Constant Field Values

daileonConfig

private static DaileonConfig daileonConfig
The DaileonConfig object, that is, the root element of the XML configuration file

Constructor Detail

DomainAnnotationsXmlReader

private DomainAnnotationsXmlReader()
Class constructor.

Method Detail

read

public static DaileonConfig read(String xmlLocation)
Reads a given XML file, located in the indicated location.

Parameters:
xmlLocation - The complete physical path of the XML configuration file.
Returns:
The DaileonConfig object that corresponds to the root element of the indicated XML configuration file.

getDaileonConfig

public static DaileonConfig getDaileonConfig()
Retrieves the DaileonConfig object that corresponds to the root element of the indicated XML configuration file.

Returns:
The DaileonConfig object that corresponds to the root element of the indicated XML configuration file. The read method must be called prior to this method.
Throws:
IllegalStateException - If the read method was not called prior to this method.