|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.zeus.transform.BaseTransformer | +--org.enhydra.zeus.transform.SimpleTransformer
SimpleTransformer
is a basic implementation of a Zeus
. It iterates through
the supplied Transformer
objects and assigns each the
options for this transformer.
Binding
Fields inherited from class org.enhydra.zeus.transform.BaseTransformer |
source |
Constructor Summary | |
SimpleTransformer(Source source)
This constructor takes in a
to read mapping information from and allow generation of the
transformation mappings from it. |
Method Summary | |
java.util.List |
transform(java.util.List bindings,
boolean recursing)
This method performs the work of transforming a set of Zeus objects. |
Methods inherited from class org.enhydra.zeus.transform.BaseTransformer |
addValueEnumeration, getTransformerOptions, getValueEnumeration, setTransformerOptions, transform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleTransformer(Source source)
This constructor takes in a
to read mapping information from and allow generation of the
transformation mappings from it.
Source
source
- Source
to read mapping input from.Method Detail |
public java.util.List transform(java.util.List bindings, boolean recursing) throws java.io.IOException, ZeusException
This method performs the work of transforming a set of Zeus
objects. It then
returns a new set of Binding
Binding
objects
(in List
form) with transformed names, types, and values.
When this method is invoked, it attempts to see if parsing of the mapping file has already occurred. If it has not, parsing of that file will occur within this method.
It is important to note that the number of bindings returned from this method may not be the same as the number supplied. This is due to some XML elements/attributes being converted to value objects, while other mapping instructions may actually create new binding objects.
transform
in class BaseTransformer
bindings
- List
of bindings to process for
transformation.recursing
- indication of if this is within a recursion loop.List
- the transformed bindings.IOException
- - when errors occur in parsing
a mapping configuration file.ZeusException
- - when errors occuring in
transformation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |