Schnittstelle SourceTransformer
- Alle bekannten Implementierungsklassen:
AttributeTransformer,BeanPropertyMethodNameTransformer,CopyAttributeTransformer,GetterSetterNameTransformer,LoadAdditionalSourceTransformer,LoadAllSourceFilesTransformer,SourceElementToModelTransformer,SourceTargetAttributeTransformer
public interface SourceTransformer
Transforms one source tree into another source tree.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungtransform(Object modelRoot, ControllerState controllerState) Transforms one source root into another source root.
-
Methodendetails
-
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.- Parameter:
modelRoot- the root of the model to transform, not null.controllerState- the state of the controller, not null.- Gibt zurück:
- the transformed source root, not null.
- Löst aus:
SourceTransformerException- if the source cannot be transformed.
-