|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jdbcimporter.ant.ColumnTranslatorElement
The ColumnTranslatorElement provides an Ant wrapper for setting a ColumnTranslator object from Ant.
Field Summary | |
static java.lang.String |
PREFIX
The prefix used in the properties to identify that this property is a column translator mapping. |
Constructor Summary | |
ColumnTranslatorElement(java.util.Map plugins)
Creates a ColumnTranslatorElement with the given mapping of column translator types to classes. |
Method Summary | |
void |
addConfiguredProperty(PropertyElement element)
Add a property to the column translator. |
ColumnTranslator |
getTranslator()
Returns the column translator. |
protected ColumnTranslator |
instantiateTranslator(java.lang.String className)
Instantiate the column translator. |
void |
setClassname(java.lang.String name)
Set the class name of the column translator and instantiate the column translator. |
void |
setType(java.lang.String type)
Set the column translator type and instantiate the column translator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String PREFIX
Constructor Detail |
public ColumnTranslatorElement(java.util.Map plugins)
plugins
- the plugin mappingsMethod Detail |
public void setType(java.lang.String type)
type
- the column translator typepublic void setClassname(java.lang.String name)
name
- the class name of the column translatorprotected ColumnTranslator instantiateTranslator(java.lang.String className)
className
- the class name
public void addConfiguredProperty(PropertyElement element)
element
- the propertypublic ColumnTranslator getTranslator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |