AbstractSingleValueConverter
public 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)
ConverterMatcher
canConvert
in interface ConverterMatcher
type
- the Class representing the object type to be convertedpublic void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
Converter
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converter
Copyright © 2016 Internet2. All rights reserved.