net.sourceforge.saxadapter.examples.env
Class EnvironmentLoader

java.lang.Object
  |
  +--net.sourceforge.saxadapter.examples.env.EnvironmentLoader

class EnvironmentLoader
extends java.lang.Object

This class loads an Environment object from an XML config file with the following DTD

Author:
Mark Priest

Field Summary
static java.lang.String NAME_TAG
          property name tagname
static java.lang.String PROPERTY_JAVATYPE_TAG
          property javaType tagname
static java.lang.String PROPERTY_TAG
          property tagname
static java.lang.String PROPERTY_VALUE_TAG
          property value tagname
 
Constructor Summary
(package private) EnvironmentLoader()
           
 
Method Summary
static Environment load(java.lang.String argResourceURL)
          This method loads the environment based on the configuration data located in the resource at the provided URLs.
static Environment load(java.lang.String argResourceURL, org.xml.sax.XMLReader argReader, EnvironmentImpl argEnv)
          This method loads the environment based on the configuration data located in the resource at the provided URLs.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_TAG

public static final java.lang.String PROPERTY_TAG
property tagname

NAME_TAG

public static final java.lang.String NAME_TAG
property name tagname

PROPERTY_JAVATYPE_TAG

public static final java.lang.String PROPERTY_JAVATYPE_TAG
property javaType tagname

PROPERTY_VALUE_TAG

public static final java.lang.String PROPERTY_VALUE_TAG
property value tagname
Constructor Detail

EnvironmentLoader

EnvironmentLoader()
Method Detail

load

public static Environment load(java.lang.String argResourceURL,
                               org.xml.sax.XMLReader argReader,
                               EnvironmentImpl argEnv)
                        throws java.lang.Exception
This method loads the environment based on the configuration data located in the resource at the provided URLs.
Parameters:
argResourceURL - delimited list of URLs of the configuration resources(: or ; delimted)
argReader - the parent XMLReader or null if none
argEnv - the EnvironmentImpl instance to use or null
Returns:
com.teti.telematics.core.resource.Environment
Throws:
java.lang.Exception -  

load

public static Environment load(java.lang.String argResourceURL)
                        throws java.lang.Exception
This method loads the environment based on the configuration data located in the resource at the provided URLs.
Parameters:
argResourceURL - delimited list of URLs of the configuration resources(: or ; delimted)
Returns:
com.teti.telematics.core.resource.Environment
Throws:
java.lang.Exception -