org.jbind.xml
Class FixedConfig

java.lang.Object
  extended byorg.jbind.xml.FixedConfig
All Implemented Interfaces:
IConfig

public class FixedConfig
extends java.lang.Object
implements IConfig

Fixed configuration class. This class can be used in when JBind is to be used under JDK 1.3.


Field Summary
static java.lang.String APPLICATION_XML_CATALOG
          Application XML catalog.
static FixedConfig instance
           
static java.lang.String JBIND_XML_CATALOG
          JBind XML catalog.
static java.lang.String LOAD_BY_CLASS_LOADER
          Constant that identifies the load method that uses the Config.class.getResource(String aResourceName) to access a resource.
static java.lang.String LOAD_BY_URL
          Constant that identifies a load method that uses a configured URL.
 
Method Summary
 void addCatalog(java.net.URL aUrl)
           
 boolean checkCountryCode()
           
 boolean checkLanguageCode()
           
 IRegEx createRegEx(java.lang.String aRegEx)
           
 java.lang.String[] getCartridgeClasses()
           
 java.lang.String getCountry(java.lang.String aCode)
           
 IDataImplFactory getDataImplFactory()
           
 org.xml.sax.EntityResolver getEntityResolver()
           
 java.lang.String getLanguage(java.lang.String aCode)
           
 java.lang.String getPackageForNamespace(java.lang.String aNamespace)
           
 IRegExFactory getRegExFactory()
           
 IXPathFactory getXPathFactory()
           
 java.lang.String resolveUri(java.lang.String aUri)
           
 boolean strictSchemaValidation()
           
 boolean useContextClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBIND_XML_CATALOG

public static final java.lang.String JBIND_XML_CATALOG
JBind XML catalog. ("/org/jbind/catalog.xml").

See Also:
Constant Field Values

APPLICATION_XML_CATALOG

public static final java.lang.String APPLICATION_XML_CATALOG
Application XML catalog. ("/catalog.xml").

See Also:
Constant Field Values

LOAD_BY_CLASS_LOADER

public static final java.lang.String LOAD_BY_CLASS_LOADER
Constant that identifies the load method that uses the Config.class.getResource(String aResourceName) to access a resource.

See Also:
Constant Field Values

LOAD_BY_URL

public static final java.lang.String LOAD_BY_URL
Constant that identifies a load method that uses a configured URL. Relative URLs are resolved relative to the current user home directory.

See Also:
Constant Field Values

instance

public static final FixedConfig instance
Method Detail

checkLanguageCode

public boolean checkLanguageCode()
Specified by:
checkLanguageCode in interface IConfig

checkCountryCode

public boolean checkCountryCode()
Specified by:
checkCountryCode in interface IConfig

getCartridgeClasses

public java.lang.String[] getCartridgeClasses()
                                       throws java.lang.Exception
Specified by:
getCartridgeClasses in interface IConfig
Throws:
java.lang.Exception

resolveUri

public java.lang.String resolveUri(java.lang.String aUri)
                            throws XmlException
Specified by:
resolveUri in interface IConfig
Throws:
XmlException

getPackageForNamespace

public java.lang.String getPackageForNamespace(java.lang.String aNamespace)
Specified by:
getPackageForNamespace in interface IConfig

strictSchemaValidation

public boolean strictSchemaValidation()
Specified by:
strictSchemaValidation in interface IConfig

getCountry

public java.lang.String getCountry(java.lang.String aCode)
Specified by:
getCountry in interface IConfig

getLanguage

public java.lang.String getLanguage(java.lang.String aCode)
Specified by:
getLanguage in interface IConfig

getXPathFactory

public IXPathFactory getXPathFactory()
Specified by:
getXPathFactory in interface IConfig

getDataImplFactory

public IDataImplFactory getDataImplFactory()
Specified by:
getDataImplFactory in interface IConfig

getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()
Specified by:
getEntityResolver in interface IConfig

getRegExFactory

public IRegExFactory getRegExFactory()
Specified by:
getRegExFactory in interface IConfig

createRegEx

public IRegEx createRegEx(java.lang.String aRegEx)
                   throws java.lang.Exception
Specified by:
createRegEx in interface IConfig
Throws:
java.lang.Exception

addCatalog

public void addCatalog(java.net.URL aUrl)
Specified by:
addCatalog in interface IConfig

useContextClassLoader

public boolean useContextClassLoader()
Specified by:
useContextClassLoader in interface IConfig