org.apache.torque.generator.source.transform

## Interface SourceTransformer

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

      public interface SourceTransformer

  Transforms one source tree into another source tree.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `transform(Object modelRoot, ControllerState controllerState)` Transforms one source root into another source root.

- - ### Method Detail

    - #### transform

          Object transform(Object modelRoot,
                           ControllerState controllerState)
                    throws SourceTransformerException

      Transforms one source root into another source root. It is allowed to modify the toTransformRoot tree and return the same tree.
      Parameters:
        `modelRoot` - the root of the model to transform, not null.
        `controllerState` - the state of the controller, not null.
      Returns:
        the transformed source root, not null.
      Throws:
        `SourceTransformerException` - if the source cannot be transformed.

Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.