I
- the input typeD
- the delegate typeO
- the output typepublic abstract class AbstractDelegateConverter<I,D,O> extends AbstractConverter<I,O>
Converter
plugins that delegate to other
converters to chain two conversion steps together.Constructor and Description |
---|
AbstractDelegateConverter() |
Modifier and Type | Method and Description |
---|---|
<T> T |
convert(Object src,
Class<T> dest)
Converts the given object to an object of the specified type.
|
protected abstract Class<D> |
getDelegateType() |
canConvert, canConvert, canConvert, canConvert, canConvert, convert, convert, getType, populateInputCandidates, supports
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInputType, getOutputType
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public <T> T convert(Object src, Class<T> dest)
Converter
String
, which uses the
Object.toString()
method instead). In the case of primitive types,
returns an object of the corresponding wrapped type. If the destination
type does not have an appropriate constructor, returns null.T
- Type to which the object should be converted.src
- The object to convert.dest
- Type to which the object should be converted.Copyright © 2015–2022 SciJava. All rights reserved.