|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.util.beans.ArrayValueConverter
public class ArrayValueConverter
An ValueConverter that handles Arrays. Conversion to arrays is done using a CSV string.
Constructor Summary | |
---|---|
ArrayValueConverter(Class arrayClass,
ValueConverter elementConverter)
Creates a new ArrayValueConverter for the given element type and array type. |
Method Summary | |
---|---|
String |
toAttributeValue(Object o)
Converts an object to an attribute value. |
Object |
toPropertyValue(String s)
Converts a string to a property value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayValueConverter(Class arrayClass, ValueConverter elementConverter)
arrayClass
- the array typeelementConverter
- the value converter for the array elements.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |