com.thoughtworks.xstream.converters.SingleValueConverter .
Subclasses should implement methods canConvert(Class) and fromString(String) for the conversion.
com.thoughtworks.xstream.converters.SingleValueConverter
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Redeclares com. |
| public abstract Object | fromString(String
the String with the single value of the Object str)Redeclares com. |
| public String | toString(Object
the Object to be converted obj)Implements com. |
| AbstractSingleValueConverter | back to summary |
|---|---|
| public AbstractSingleValueConverter() | |
| canConvert | back to summary |
|---|---|
| public abstract boolean canConvert(Class<T> type) Redeclares com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| fromString | back to summary |
|---|---|
| public abstract Object fromString(String str) Redeclares com. Doc from com. Unmarshals an Object from its single value representation. | |
| toString | back to summary |
|---|---|
| public String toString(Object obj) Implements com. Doc from com. Marshals an Object into a single value representation. | |