Interface ValueConverter
-
- All Known Implementing Classes:
ArrayValueConverter
,BasicStrokeValueConverter
,BigDecimalValueConverter
,BigIntegerValueConverter
,BooleanValueConverter
,BorderStyleValueConverter
,BoxSizingValueConverter
,ByteValueConverter
,CharacterValueConverter
,ClassValueConverter
,ColorValueConverter
,DateValueConverter
,DoubleValueConverter
,ElementAlignmentValueConverter
,EnumValueConverter
,FloatValueConverter
,FontSmoothValueConverter
,FontValueConverter
,GenericValueConverter
,ImageMapValueConverter
,IntegerValueConverter
,LocaleValueConverter
,LongValueConverter
,ShortValueConverter
,SQLDateValueConverter
,SQLTimestampValueConverter
,SQLTimeValueConverter
,StagingModeValueConverter
,StringValueConverter
,TextDirectionValueConverter
,TextRotationValueConverter
,TextWrapValueConverter
,TimeZoneValueConverter
,VerticalTextAlignValueConverter
,WhitespaceCollapseValueConverter
public interface ValueConverter
A value converter is an object that can transform an object into a string or vice versa.- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
toAttributeValue(Object o)
Converts an object to an attribute value.Object
toPropertyValue(String s)
Converts a string to a property value.
-
-
-
Method Detail
-
toAttributeValue
String toAttributeValue(Object o) throws BeanException
Converts an object to an attribute value.- Parameters:
o
- the object, never null.- Returns:
- the attribute value.
- Throws:
BeanException
- if there was an error during the conversion.
-
toPropertyValue
Object toPropertyValue(String s) throws BeanException
Converts a string to a property value.- Parameters:
s
- the string, never null.- Returns:
- a property value.
- Throws:
BeanException
- if there was an error during the conversion.
-
-