public class AttributeConverter extends java.lang.Object implements IAttributeConverter
Modifier and Type | Field and Description |
---|---|
protected IObjectStringConverter |
osconv
The object string converter.
|
protected IStringObjectConverter |
soconv
The string object converter.
|
Constructor and Description |
---|
AttributeConverter(IStringObjectConverter soconv,
IObjectStringConverter osconv)
Create a new attribute converter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertObject(java.lang.Object val,
java.lang.Object context)
Convert a value to a string type.
|
java.lang.Object |
convertString(java.lang.String val,
java.lang.Object context)
Convert a string value to another type.
|
protected IStringObjectConverter soconv
protected IObjectStringConverter osconv
public AttributeConverter(IStringObjectConverter soconv, IObjectStringConverter osconv)
public java.lang.Object convertString(java.lang.String val, java.lang.Object context) throws java.lang.Exception
convertString
in interface IStringObjectConverter
val
- The value to convert.java.lang.Exception
public java.lang.String convertObject(java.lang.Object val, java.lang.Object context)
convertObject
in interface IObjectStringConverter
val
- The value to convert.