org.apache.torque.generator.source.transform
Interface SourceTransformer

All Known Implementing Classes:
AttributeTransformer, BeanPropertyMethodNameTransformer, CopyAttributeTransformer, GetterSetterNameTransformer, LoadAdditionalSourceTransformer, LoadAllSourceFilesTransformer, SourceTargetAttributeTransformer

public interface SourceTransformer

Transforms one source tree into another source tree.


Method Summary
 SourceElement transform(SourceElement toTransformRoot, ControllerState controllerState)
          Transforms one source tree into another source tree.
 

Method Detail

transform

SourceElement transform(SourceElement toTransformRoot,
                        ControllerState controllerState)
                        throws SourceTransformerException
Transforms one source tree into another source tree. It is allowed to modify the toTransformRoot tree and return the same tree.

Parameters:
toTransformRoot - the root element of the source tree to transform, not null.
controllerState - the state of the controller, not null.
Returns:
the root element of the transformed source tree, not null.
Throws:
SourceTransformerException - if the source cannot be transformed.


Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.