public class EnvironmentParser
extends java.lang.Object
..
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOGGER
logger definition
|
Constructor and Description |
---|
EnvironmentParser() |
Modifier and Type | Method and Description |
---|---|
protected static void |
applyParameters(org.w3c.dom.Element parameters,
IParameterized parameterized) |
protected java.util.Collection<IModel> |
buildModels(java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
build all the models
|
protected void |
configureReality(org.w3c.dom.Document env) |
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) |
protected java.util.Collection<IInstallable> |
instantiateAttachments(org.w3c.dom.Document env,
java.util.Collection<IModel> models) |
protected IConnector |
instantiateConnector(org.w3c.dom.Document env,
ACTRRuntime runtime) |
protected IController |
instantiateController(org.w3c.dom.Document env,
ACTRRuntime runtime)
handle the controller
|
protected void |
instantiateOnStartStop(org.w3c.dom.Document env,
ACTRRuntime runtime)
snag the onStart onStop classes and instantiate them
|
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.
|
protected java.net.URL |
resolveURLLocation(java.net.URL enviromentLocation,
java.lang.String location) |
public void parse(java.net.URL input) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public void process(org.w3c.dom.Document document, java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
document
- modelDescriptors
- protected java.util.Collection<IModel> buildModels(java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
modelDescriptors
- public java.util.Collection<org.antlr.runtime.tree.CommonTree> getModelDescriptors(org.w3c.dom.Document document, java.net.URL root)
document
- protected void configureReality(org.w3c.dom.Document env)
public static java.lang.Object instantiate(org.w3c.dom.Element element, java.lang.String objectType)
protected java.util.Collection<IInstallable> instantiateAttachments(org.w3c.dom.Document env, java.util.Collection<IModel> models)
protected IConnector instantiateConnector(org.w3c.dom.Document env, ACTRRuntime runtime)
protected IController instantiateController(org.w3c.dom.Document env, ACTRRuntime runtime)
env
- runtime
- protected static void applyParameters(org.w3c.dom.Element parameters, IParameterized parameterized)
protected void instantiateOnStartStop(org.w3c.dom.Document env, ACTRRuntime runtime)
env
- runtime
- protected java.net.URL resolveURLLocation(java.net.URL enviromentLocation, java.lang.String location)