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