AbstractSingleValueConverterpublic abstract class AbstractBasicConverter extends Object implements Converter
Subclasses should implement the toString(Object) and fromString(String) methods for the conversion.
| Constructor and Description |
|---|
AbstractBasicConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canConvert(Class type)
Deprecated.
Determines whether the converter can marshall a particular type.
|
protected abstract Object |
fromString(String str)
Deprecated.
|
void |
marshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Deprecated.
Convert an object to textual data.
|
protected String |
toString(Object obj)
Deprecated.
|
Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Deprecated.
Convert textual data back into an object.
|
public abstract boolean canConvert(Class type)
ConverterMatchercanConvert in interface ConverterMatchertype - the Class representing the object type to be convertedpublic void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
Converterpublic Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
ConverterCopyright © 2021 Internet2. All rights reserved.