public class ArrayValueConverter extends java.lang.Object implements ValueConverter
| Constructor and Description |
|---|
ArrayValueConverter(java.lang.Class arrayClass,
ValueConverter elementConverter)
Creates a new ArrayValueConverter for the given element type and
array type.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toAttributeValue(java.lang.Object o)
Converts an object to an attribute value.
|
java.lang.Object |
toPropertyValue(java.lang.String s)
Converts a string to a property value.
|
public ArrayValueConverter(java.lang.Class arrayClass,
ValueConverter elementConverter)
arrayClass - the array typeelementConverter - the value converter for the array elements.public java.lang.String toAttributeValue(java.lang.Object o)
throws BeanException
toAttributeValue in interface ValueConvertero - the object.BeanException - if there was an error during the conversion.public java.lang.Object toPropertyValue(java.lang.String s)
throws BeanException
toPropertyValue in interface ValueConverters - the string.BeanException - if there was an error during the conversion.