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