public class BeanPropertyMethodNameTransformer extends SourceTargetAttributeTransformer
| Constructor and Description |
|---|
BeanPropertyMethodNameTransformer()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSuffix()
Returns the suffix which is added after the input string.
|
String |
getTargetNamePrefix()
Returns the prefix which is added in front of the input string.
|
void |
setPrefix(String prefix)
Sets the prefix which is added in front of the input string.
|
void |
setSuffix(String suffix)
Sets the suffix which is added after of the input string.
|
SourceElement |
transform(Object rootObject,
ControllerState controllerState)
Fills the target attribute according to the settings.
|
getSourceAttributeName, getTargetAttributeName, isOverwrite, setOverwrite, setSourceAttributeName, setTargetAttributeNamepublic BeanPropertyMethodNameTransformer()
public String getTargetNamePrefix()
public void setPrefix(String prefix)
prefix - the prefix for the result, not null.NullPointerException - if prefix is null.public String getSuffix()
public void setSuffix(String suffix)
suffix - the suffix for the result, not null.NullPointerException - if suffix is null.public SourceElement transform(Object rootObject, ControllerState controllerState) throws SourceTransformerException
transform in interface SourceTransformertransform in class SourceTargetAttributeTransformerrootObject - the root of the source graph, not null.controllerState - the controller state.SourceTransformerException - if rootObject is not a SourceElement.IllegalStateException - if targetAttributeName was not set.SourceTransformer.transform(Object, ControllerState)Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.