com.thoughtworks.xstream.converters.SingleValueConverter into a
com.thoughtworks.xstream.converters.Converter .
com.thoughtworks.xstream.converters.Converter , com.thoughtworks.xstream.converters.SingleValueConverter
| Modifier and Type | Field and Description |
|---|---|
| private final SingleValueConverter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendErrors(ErrorWriter
the error writer errorWriter)Implements com. ErrorWriter.
|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Implements com. |
| public Object | fromString(String
the String with the single value of the Object str)Implements com. |
| public void | marshal(Object
The object to be marshalled. source, HierarchicalStreamWriter A stream to write to. writer, MarshallingContext A context that allows nested objects to be processed by XStream. context)Implements com. |
| public String | toString(Object
the Object to be converted obj)Implements com. |
| public Object | unmarshal(HierarchicalStreamReader
The stream to read the text from. reader, UnmarshallingContext context)Implements com. |
| wrapped | back to summary |
|---|---|
| private final SingleValueConverter wrapped | |
| SingleValueConverterWrapper | back to summary |
|---|---|
| public SingleValueConverterWrapper(SingleValueConverter wrapped) | |
| appendErrors | back to summary |
|---|---|
| public void appendErrors(ErrorWriter errorWriter) Implements com. Doc from com. Append context information to an
| |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| fromString | back to summary |
|---|---|
| public Object fromString(String str) Implements com. Doc from com. Unmarshals an Object from its single value representation. | |
| marshal | back to summary |
|---|---|
| public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) Implements com. Doc from com. Convert an object to textual data.
| |
| toString | back to summary |
|---|---|
| public String toString(Object obj) Implements com. Doc from com. Marshals an Object into a single value representation. | |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Implements com. Doc from com. Convert textual data back into an object.
| |