Class AbstractCSSValueConverter
java.lang.Object
org.eclipse.e4.ui.css.core.dom.properties.converters.AbstractCSSValueConverter
- All Implemented Interfaces:
ICSSValueConverter
- Direct Known Subclasses:
CSSValueBooleanConverterImpl
,CSSValueSWTColorConverterImpl
,CSSValueSWTCursorConverterImpl
,CSSValueSWTFontDataConverterImpl
,CSSValueSWTGradientConverterImpl
,CSSValueSWTImageConverterImpl
,CSSValueSWTRGBConverterImpl
Abstract base class for converters.
- Version:
- 1.0.0
- Author:
- Angelo ZERR
-
Constructor Details
-
AbstractCSSValueConverter
-
-
Method Details
-
getToType
Description copied from interface:ICSSValueConverter
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.- Specified by:
getToType
in interfaceICSSValueConverter
- Returns:
- the type to which this converter can convert, or null if this converter is untyped
-
convert
Description copied from interface:ICSSValueConverter
Returns StringCSSValue
of the result of the conversion of the given Objectvalue
.- Specified by:
convert
in interfaceICSSValueConverter
- Throws:
Exception
-