|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.datagenerator.config.GenerateEntityConfigDelegate
The GenerateEntityConfigDelegate constructs GenerateEntityDef and GenerateColumnDef from the Node objects.
Field Summary | |
static java.lang.String |
COLUMN_VALUE_GENERATOR_TAG
The element name that contains the column value generator definiton. |
static java.lang.String |
COLUMN_VALUE_GENERATOR_TYPE_ATTR
The attribute name in the COLUMN_VALUE_GENERATOR_TAG element that contains the column value generator type. |
protected CustomObjectFactory |
columnValueGeneratorFactory
The custom object factory that can create ColumnValueGenerator from column value generator types. |
static java.lang.String |
COUNT_ATTR
The attribute name that contains the number of rows that will be generated. |
static java.lang.String |
DELIMITER_TAG
The element name that contains the delimiter formatter definition. |
static java.lang.String |
DELIMITER_TYPE_ATTR
The attribute name in the DELIMITER_TAG element that contains contains the delimiter formatter type. |
protected CustomObjectFactory |
delimiterFormatterFactory
The custom object factory that can create DelimiterFormatters from delimiter formatter types. |
static java.lang.String |
TARGET_ATTR
The attribute name that contains the name of data file that will contain the data generated. |
static java.lang.String |
TARGET_ENCODING_ATTR
The attribute name that contains the encoding of the target file. |
Constructor Summary | |
GenerateEntityConfigDelegate()
|
Method Summary | |
ColumnDef |
createColumnDef(org.w3c.dom.Node node)
Create a ColumnDef from the given node and apply any custom attributes. |
EntityDef |
createEntityDef(org.w3c.dom.Node node)
Create an EntityDef from the given node and apply any custom attributes. |
protected void |
initDelimiter(GenerateEntityDef entityDef,
org.w3c.dom.Node delimiter)
Load the delimiter formatter defined in the given node into the GenerateEntityDef. |
void |
setColumnValueGeneratorFactory(CustomObjectFactory factory)
Set the custom object factory for creating column value generators. |
void |
setDelimiterFormatterFactory(CustomObjectFactory factory)
Set the custom object factory for creating delimiter formatters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TARGET_ATTR
public static final java.lang.String TARGET_ENCODING_ATTR
public static final java.lang.String COUNT_ATTR
public static final java.lang.String DELIMITER_TAG
public static final java.lang.String DELIMITER_TYPE_ATTR
public static final java.lang.String COLUMN_VALUE_GENERATOR_TAG
public static final java.lang.String COLUMN_VALUE_GENERATOR_TYPE_ATTR
protected CustomObjectFactory delimiterFormatterFactory
protected CustomObjectFactory columnValueGeneratorFactory
Constructor Detail |
public GenerateEntityConfigDelegate()
Method Detail |
public EntityDef createEntityDef(org.w3c.dom.Node node) throws org.w3c.dom.DOMException, InvalidCustomObjectDefException
EntityConfigDelegate
createEntityDef
in interface EntityConfigDelegate
node
- the element node with the name 'entity'
InvalidCustomObjectDefException
- if the custom EntityDef could not be created
org.w3c.dom.DOMException
- if any custom attributes are missing or invalidEntityConfigDelegate.createEntityDef(org.w3c.dom.Node)
public ColumnDef createColumnDef(org.w3c.dom.Node node) throws org.w3c.dom.DOMException, InvalidCustomObjectDefException
EntityConfigDelegate
createColumnDef
in interface EntityConfigDelegate
node
- the element node with the name 'column'
org.w3c.dom.DOMException
- if any custom attributes are missing or invalid
InvalidCustomObjectDefException
- if the custom ColumnDef could not be createdEntityConfigDelegate.createColumnDef(org.w3c.dom.Node)
public void setColumnValueGeneratorFactory(CustomObjectFactory factory)
factory
- the column value generator factorypublic void setDelimiterFormatterFactory(CustomObjectFactory factory)
factory
- the delimiter formatter factoryprotected void initDelimiter(GenerateEntityDef entityDef, org.w3c.dom.Node delimiter) throws org.w3c.dom.DOMException, InvalidCustomObjectDefException
entityDef
- the generate entity definitiondelimiter
- the node containing the delimiter formatter definition.
org.w3c.dom.DOMException
- if the node is invalid
InvalidCustomObjectDefException
- if the delimiter formatter could not be
created by the delimiter formatter factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |