Interface ICSSValueConverter
- All Known Implementing Classes:
AbstractCSSValueConverter,CSSValueBooleanConverterImpl,CSSValueSWTColorConverterImpl,CSSValueSWTCursorConverterImpl,CSSValueSWTFontConverterImpl,CSSValueSWTFontDataConverterImpl,CSSValueSWTGradientConverterImpl,CSSValueSWTImageConverterImpl,CSSValueSWTRGBConverterImpl
public interface ICSSValueConverter
A one-way converter.
This interface is not intended to be implemented by clients; clients should
subclass
AbstractCSSValueConverter.- Version:
- 1.0.0
- Author:
- Angelo ZERR
-
Method Summary
Modifier and TypeMethodDescriptionReturns StringCSSValueof the result of the conversion of the given Objectvalue.convert(Object value, CSSEngine engine, Object context, ICSSValueConverterConfig config) Returns StringCSSValueof the result of the conversion of the given Objectvalue.Returns the result of the conversion of the given CSSValuevalue.Returns the type to which this converter can convert.
-
Method Details
-
getToType
Object getToType()Returns the type to which this converter can convert. The return type is Object rather than Class to optionally support richer type systems than the one provided by Java reflection.- Returns:
- the type to which this converter can convert, or null if this converter is untyped
-
convert
Returns the result of the conversion of the given CSSValuevalue.- Parameters:
value- the CSSValue to convertcontext-- Returns:
- the converted object
- Throws:
Exception
-
convert
Returns StringCSSValueof the result of the conversion of the given Objectvalue.- Parameters:
value-- Throws:
Exception
-
convert
String convert(Object value, CSSEngine engine, Object context, ICSSValueConverterConfig config) throws Exception Returns StringCSSValueof the result of the conversion of the given Objectvalue.configcan be used to manage format of the CSSValue String to return.- Throws:
Exception
-