public class ConstantStringMapper extends java.lang.Object implements IValueMapper
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
val
The value that is returned.
|
Constructor and Description |
---|
ConstantStringMapper(java.lang.Object val)
Create a new mapper.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertValue(java.lang.Object value)
Convert the given value.
|
public ConstantStringMapper(java.lang.Object val)
val
- The constant value.public java.lang.Object convertValue(java.lang.Object value) throws java.lang.Exception
convertValue
in interface IValueMapper
value
- The value to convert.java.lang.Exception