org.jactr.io.environment
Class EnvironmentParser

java.lang.Object
  extended by org.jactr.io.environment.EnvironmentParser

public class EnvironmentParser
extends java.lang.Object

parses the environment.xml file to configure the runtime ..

Author:
developer

Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Constructor Summary
EnvironmentParser()
           
 
Method Summary
 java.util.Collection<org.antlr.runtime.tree.CommonTree> getModelDescriptors(org.w3c.dom.Document document, java.net.URL root)
          load the model descriptors based on the document contents and the root url
static java.lang.Object instantiate(org.w3c.dom.Element element, java.lang.String objectType)
           
 void parse(java.net.URL input)
           
 void process(org.w3c.dom.Document document, java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
          process the environment descriptor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
logger definition

Constructor Detail

EnvironmentParser

public EnvironmentParser()
Method Detail

parse

public void parse(java.net.URL input)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

process

public void process(org.w3c.dom.Document document,
                    java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
process the environment descriptor.

Parameters:
document -
modelDescriptors -

getModelDescriptors

public java.util.Collection<org.antlr.runtime.tree.CommonTree> getModelDescriptors(org.w3c.dom.Document document,
                                                                                   java.net.URL root)
load the model descriptors based on the document contents and the root url

Parameters:
document -
Returns:

instantiate

public static java.lang.Object instantiate(org.w3c.dom.Element element,
                                           java.lang.String objectType)