net.openmarkup
Class Env

java.lang.Object
  extended bynet.openmarkup.Env

public class Env
extends Object

Environment variables and configuration parameters for ObjectRealizer.

Author:
Ramesh Gupta

Constructor Summary
Env()
           
 
Method Summary
static Class getClass(String className)
          Convenience method to obtain a reference to the class of the given name.
static ClassLoader getClassLoader()
          Returns the class loader used to load this class.
static String getDefaultElementImplClassName()
          Returns the name of the element implementation class that may be instantiated for all element types for which a specialized element implementation class is not available.
static String getDocumentBuilderFactoryClassName()
          Returns the name of the document builder factory class.
static Constructor getElementConstructor(Class elemImplClass)
          Returns the Constructor for the specified element implementation class.
static Method getFactoryInstantiationMethod()
          Temporary method -- Remove when JAXP limitation has been fixed.
static String getProperty(String key)
          Returns the value of the specified configuration property.
static String getReferenceElementImplClassName()
          Returns the name of the element implementation class that implements support for reference elements.
static String getReferenceElementSuffix()
          Returns the suffix that must be appended to the name of an element type to derive the name of the corresponding reference element type.
static String getRootElementLocalName()
          Returns the local part of the root element name.
static String getRootElementNamespaceURI()
          Returns the namespace URI of the root element.
static boolean isNativeElementImplementation(Class elemImplClass)
          Tests whether the specified element implementation class is a native implementation class or a plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Env

public Env()
Method Detail

getClassLoader

public static ClassLoader getClassLoader()
Returns the class loader used to load this class.

Returns:
the class loader used to load this class

getDefaultElementImplClassName

public static String getDefaultElementImplClassName()
Returns the name of the element implementation class that may be instantiated for all element types for which a specialized element implementation class is not available.

Returns:
the name of the element implementation class that may be instantiated for all element types for which a specialized element implementation class is not available

getDocumentBuilderFactoryClassName

public static String getDocumentBuilderFactoryClassName()
Returns the name of the document builder factory class.

Returns:
the name of the document builder factory class

getReferenceElementImplClassName

public static String getReferenceElementImplClassName()
Returns the name of the element implementation class that implements support for reference elements.

Returns:
the name of the element implementation class that implements support for reference elements.

getReferenceElementSuffix

public static String getReferenceElementSuffix()
Returns the suffix that must be appended to the name of an element type to derive the name of the corresponding reference element type.

Returns:
the suffix that must be appended to the name of an element type to derive the name of the corresponding reference element type.

getFactoryInstantiationMethod

public static Method getFactoryInstantiationMethod()
Temporary method -- Remove when JAXP limitation has been fixed.

Returns:
method used to instantiate DocumentBuilderFactory

getRootElementLocalName

public static String getRootElementLocalName()
Returns the local part of the root element name.

Returns:
the local part of the root element name

getRootElementNamespaceURI

public static String getRootElementNamespaceURI()
Returns the namespace URI of the root element.

Returns:
the namespace URI of the root element

getProperty

public static String getProperty(String key)
Returns the value of the specified configuration property.

Parameters:
key - lookup key for the property
Returns:
the value of the specified configuration property

getClass

public static Class getClass(String className)
Convenience method to obtain a reference to the class of the given name.

Parameters:
className -
Returns:
a reference to the class of the given name

isNativeElementImplementation

public static boolean isNativeElementImplementation(Class elemImplClass)
Tests whether the specified element implementation class is a native implementation class or a plugin.

Parameters:
elemImplClass -
Returns:
true if the specified element implementation class is a native element implementation class.

getElementConstructor

public static Constructor getElementConstructor(Class elemImplClass)
Returns the Constructor for the specified element implementation class.

Parameters:
elemImplClass -
Returns:
the Constructor for the specified element implementation class


Copyright 2003-2004 eNode, Inc. All rights reserved.