public class ColumnNameTransformer extends java.lang.Object implements ToStringVisitor.Transformer
Constructor and Description |
---|
ColumnNameTransformer(java.lang.String objectName,
java.util.Set<java.lang.String> validAttributes,
java.lang.String qualifier) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(Node n)
If this returns a NON NULL value, then this value will replace the
Node's .value value, when writing it into the String.
|
public ColumnNameTransformer(java.lang.String objectName, java.util.Set<java.lang.String> validAttributes, java.lang.String qualifier)
objectName
- MBO Object namevalidAttributes
- Valid attributes for the given Object namequalifier
- optional qualifier to use as a prefix when converting the
fieldname into a table column namepublic java.lang.String transform(Node n)
ToStringVisitor.Transformer
transform
in interface ToStringVisitor.Transformer
n
- Node being transformed