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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.e4.ui.css.core.dom.properties.converters.ICSSValueConverter
convert, convert
-
Constructor Details
-
AbstractCSSValueConverter
-
-
Method Details
-
getToType
Description copied from interface:ICSSValueConverterReturns 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:
getToTypein interfaceICSSValueConverter- Returns:
- the type to which this converter can convert, or null if this converter is untyped
-
convert
Description copied from interface:ICSSValueConverterReturns StringCSSValueof the result of the conversion of the given Objectvalue.- Specified by:
convertin interfaceICSSValueConverter- Parameters:
value-- Throws:
Exception
-