net.sourceforge.jdbcimporter.ant
Class RowTranslatorElement

java.lang.Object
  extended bynet.sourceforge.jdbcimporter.ant.RowTranslatorElement

public class RowTranslatorElement
extends java.lang.Object

The RowTranslatorElement provides an Ant wrapper for setting a RowTranslator object from Ant.

Version:
0.72
Author:
cnagy

Field Summary
static java.lang.String PREFIX
          The prefix used in the properties to identify that this property is a row translator mapping.
 
Constructor Summary
RowTranslatorElement(java.util.Map plugins)
          Creates a RowTranslatorElement with the given mapping of row translator types to classes.
 
Method Summary
 void addConfiguredProperty(PropertyElement element)
          Add a property to the row translator.
 RowTranslator getTranslator()
          Returns the row translator.
 void setType(java.lang.String type)
          Set the row translator type and instantiate the row translator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static java.lang.String PREFIX
The prefix used in the properties to identify that this property is a row translator mapping.

Constructor Detail

RowTranslatorElement

public RowTranslatorElement(java.util.Map plugins)
Creates a RowTranslatorElement with the given mapping of row translator types to classes.

Parameters:
plugins - the plugin mappings
Method Detail

setType

public void setType(java.lang.String type)
Set the row translator type and instantiate the row translator.

Parameters:
type - the row translator type

addConfiguredProperty

public void addConfiguredProperty(PropertyElement element)
Add a property to the row translator.

Parameters:
element - the property

getTranslator

public RowTranslator getTranslator()
Returns the row translator.

Returns:
row translator