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

    Modifier and Type
    Method
    Description
    transform(Object modelRoot, ControllerState controllerState)
    Transforms one source root into another source root.
  • Method Details

    • 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.