|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.config.ConfigLoader
public class ConfigLoader
Loads the configuration. With this class you can load the configuration data from an standalone application, e.g.: dbConfig = new DbFormsConfig(realPath); FileInputStream fis = new FileInputStream(fn); ConfigLoader loader = new ConfigLoader() loader.loadConfig(fis, dbConfig);
Field Summary | |
---|---|
static String |
BASE_CLASS_FIELD
DOCUMENT ME! |
static String |
BASE_CLASS_FOREIGNKEY
DOCUMENT ME! |
static String |
BASE_CLASS_QUERY
DOCUMENT ME! |
static String |
BASE_CLASS_REFERENCE
DOCUMENT ME! |
static String |
BASE_CLASS_TABLE
DOCUMENT ME! |
static String |
DEFAULT_CONFIG
DOCUMENT ME! |
static String |
DEFAULT_ERRORS
DOCUMENT ME! |
static String |
DEFAULT_RULES
DOCUMENT ME! |
static String |
DEFAULT_VALIDATION
DOCUMENT ME! |
Constructor Summary | |
---|---|
ConfigLoader()
Creates a new ConfigLoader object. |
Method Summary | |
---|---|
String |
getConfig()
DOCUMENT ME! |
String |
getErrors()
DOCUMENT ME! |
String |
getValidation()
DOCUMENT ME! |
String |
getValidatorRules()
DOCUMENT ME! |
protected org.apache.commons.digester.Digester |
initDigester(DbFormsConfig dbFormsConfig)
Construct and return a digester that uses the new configuration file format. |
protected org.apache.commons.digester.Digester |
initErrorsDigester(DbFormsErrors dbFormsErrors)
Construct and return a digester that uses the new errors file format. |
void |
loadConfig(InputStream input,
DbFormsConfig dbFormsConfig)
Load Config from InputStream |
void |
loadErrors(InputStream input,
DbFormsErrors dbFormsErrors)
Load Errors Config from InputStream |
void |
setConfig(String config)
DOCUMENT ME! |
void |
setErrors(String errors)
DOCUMENT ME! |
void |
setFieldClassName(String className)
DOCUMENT ME! |
void |
setForeignKeyClassName(String className)
DOCUMENT ME! |
void |
setQueryClassName(String className)
DOCUMENT ME! |
void |
setReferenceClassName(String className)
DOCUMENT ME! |
void |
setTableClassName(String className)
DOCUMENT ME! |
void |
setValidation(String validation)
DOCUMENT ME! |
void |
setValidatorRules(String validator_rules)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BASE_CLASS_TABLE
public static final String BASE_CLASS_FIELD
public static final String BASE_CLASS_QUERY
public static final String BASE_CLASS_FOREIGNKEY
public static final String BASE_CLASS_REFERENCE
public static final String DEFAULT_CONFIG
public static final String DEFAULT_ERRORS
public static final String DEFAULT_VALIDATION
public static final String DEFAULT_RULES
Constructor Detail |
---|
public ConfigLoader()
Method Detail |
---|
public void setConfig(String config)
config
- DOCUMENT ME!public String getConfig()
public void setErrors(String errors)
errors
- DOCUMENT ME!public String getErrors()
public void setFieldClassName(String className)
className
- DOCUMENT ME!public void setForeignKeyClassName(String className)
className
- DOCUMENT ME!public void setQueryClassName(String className)
className
- DOCUMENT ME!public void setReferenceClassName(String className)
className
- DOCUMENT ME!public void setTableClassName(String className)
className
- DOCUMENT ME!public void setValidation(String validation)
validation
- DOCUMENT ME!public String getValidation()
public void setValidatorRules(String validator_rules)
validator_rules
- DOCUMENT ME!public String getValidatorRules()
public void loadConfig(InputStream input, DbFormsConfig dbFormsConfig) throws IOException, SAXException
input
- InputStream to load ConfigdbFormsConfig
- object to load the Config
IOException
SAXException
public void loadErrors(InputStream input, DbFormsErrors dbFormsErrors) throws IOException, SAXException
input
- InputStream to load Errors ConfigdbFormsErrors
- object to load the Errors config
IOException
SAXException
protected org.apache.commons.digester.Digester initDigester(DbFormsConfig dbFormsConfig)
dbFormsConfig
- DOCUMENT ME!
protected org.apache.commons.digester.Digester initErrorsDigester(DbFormsErrors dbFormsErrors)
dbFormsErrors
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |