Utility classes used by Castor.
See: Description
Interface Summary | |
---|---|
Iterator | An implementation of the JDK 1.2 Iterator interface. |
ObjectFactory | A simple interface for creating class instances |
RegExpEvaluator | A simple interface for evaluating Regular expressions |
Class Summary | |
---|---|
ChangeLog2XML | A simple command line utility that parses Castor's change log file and outputs the file in an XML format, a Castor mapping file may be used to change the XML format that is output. |
ChangeLog2XML.Changelog | |
ChangeLog2XML.Entry | |
ChangeLog2XML.Release | |
CmdLineOption | |
CommandLineOptions | A utility class for generating command line options |
Configuration | Provides default configuration for Castor components from the castor.properties configuration file. |
Configuration.ConfigValues | Inner class to hold values of the configuration |
Configuration.Features | |
Configuration.Property | Names of properties used in the configuration file. |
DefaultObjectFactory | The default implementation of ObjectFactory used for creating class instances |
DTDResolver | Entity resolver for various DTD/schema. |
DTDResolver.DTDInfo | Holds information about a given DTD of XML Schema. |
EventListenerList |
This class is an efficient repository for EventListeners based on javax.swing.EventListenerList. This modification of javax.swing.EventListenerList retains the core functionality of that class but changes the basic API and adds a few more features, as summarized below:
|
IteratorEnumeration | |
JakartaOroEvaluator | An implementation of the RegExpEvaluator that uses the Jakarta ORO Regular Expression library. |
JakartaRegExpEvaluator | An implementation of the RegExpEvaluator that uses the Jakarta Regular Expression library. |
JdoConfFactory |
Factory to create JDO configurations without the need of a database configuration XML file
This is an example for setting up a JDO configuration using JdoConfFactory:
JDO jdo = new JDO();
jdo.setDatabaseName(db_name);
org.exolab.castor.jdo.conf.Database jdoDbConf;
jdoDbConf = JdoConfFactory.createJdoDbConf(db_name, "oracle",
JdoConfFactory.createJdoDriverConf("oracle.jdbc.driver.OracleDriver",
db_url, username, password));
jdoDbConf.addMapping(JdoConfFactory.createJdoMappingConf(map_url.toString()));
jdo.setConfiguration(JdoConfFactory.createJdoConf(jdoDbConf));
Alternatively to using a org.exolab.castor.jdo.conf.Driver configuration you can also use a JDBC 2.0 DataSource:
OracleDataSource ds = new OracleDataSource();
ds.setURL(db_url);
ds.setUser(username);
ds.setPassword(password);
jdoDbConf = JdoConfFactory.createJdoDbConf(db_name, "oracle", JdoConfFactory.createJdoDSConf(ds));
|
List | This is my implementation of the JDK 1.2 List interface. |
LocalConfiguration | Provides default configuration for Castor components from the castor.properties configuration file. |
Logger | Simple logging facility. |
Messages | I18N message formatting class. |
Messages.EmptyResourceBundle | |
NestedIOException | An exception that is used to signal I/O errors which are caused by other exceptions. |
OrderedHashMap | A very simple extended HashMap, which maintains order via an ArrayList. |
OrderedMap | A simple String to Object mapping which preserves order |
SqlBindParser | Utility class to parse an SQL or OQL expression for bind variables Bind variables are subexpressions of the form "$n", where n is a positive integer number. |
Stack | A representation of a Stack that does not use Synchronization. |
Stack.StackIterator | |
Version | A class which contains the version information |
XercesRegExpEvaluator | An implementation of the XercesRegExpEvaluator that uses the Regular Expression library in Xerces. |
Utility classes used by Castor.