public class AttributeConverter extends java.lang.Object implements IAttributeConverter
| Modifier and Type | Field and Description |
|---|---|
protected jadex.commons.transformation.IObjectStringConverter |
osconv
The object string converter.
|
protected jadex.commons.transformation.IStringObjectConverter |
soconv
The string object converter.
|
| Constructor and Description |
|---|
AttributeConverter(jadex.commons.transformation.IStringObjectConverter soconv,
jadex.commons.transformation.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 jadex.commons.transformation.IStringObjectConverter soconv
protected jadex.commons.transformation.IObjectStringConverter osconv
public AttributeConverter(jadex.commons.transformation.IStringObjectConverter soconv,
jadex.commons.transformation.IObjectStringConverter osconv)
public java.lang.Object convertString(java.lang.String val,
java.lang.Object context)
throws java.lang.Exception
convertString in interface jadex.commons.transformation.IStringObjectConverterval - The value to convert.java.lang.Exceptionpublic java.lang.String convertObject(java.lang.Object val,
java.lang.Object context)
convertObject in interface jadex.commons.transformation.IObjectStringConverterval - The value to convert.