@StableMinor(version="12.4", sinceVersion="4.0") public abstract class AbstractSourceConverter extends AbstractConverter implements ISourceConverter
ISourceConverter
, based on AbstractConverter
.Modifier and Type | Field and Description |
---|---|
protected ISourceContext |
sourceContext
The source context that this source converter is associated with.
|
Constructor and Description |
---|
AbstractSourceConverter() |
Modifier and Type | Method and Description |
---|---|
protected abstract <T> T |
doConversion(Class<T> type,
Object value,
Locale locale,
String pattern)
Converts the specified input object into an output object of the
specified type.
|
void |
init(ISourceContext sourceContext)
This method is called to initialize the converter to be
used in the given source context.
|
convert, convert, convert, doesNullValueReturnNull, doesValueInstanceOfTypeReturnValue, getDefaultLocale, getDefaultPattern, setDefaultLocale, setDefaultPattern, setFallbackToRegisteredConverters, shouldFallbackToRegisteredConverters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, convert, convert
protected ISourceContext sourceContext
protected abstract <T> T doConversion(Class<T> type, Object value, Locale locale, String pattern) throws UnsupportedConversionTypeException
AbstractConverter
doConversion
in class AbstractConverter
T
- generics support for the data type specified.type
- data type to which the value should be converted.value
- the input value to be converted.locale
- locale to be used during conversion, if necessary.pattern
- converter specific conversion pattern, to be used during conversion, if necessary.UnsupportedConversionTypeException
- if this converter does not supports converting to the specified type.public void init(ISourceContext sourceContext) throws PortalException
ISourceConverter
init
in interface ISourceConverter
sourceContext
- the source context this converter will be used in.PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.