public interface

SingleValueConverter

implements ConverterMatcher
com.thoughtworks.xstream.converters.SingleValueConverter
Known Indirect Subclasses

Class Overview

SingleValueConverter implementations are marshallable to/from a single value String representation.

AbstractSingleValueConverter provides a starting point for objects that can store all information in a single value String.

Summary

Public Methods
abstract Object fromString(String str)
Unmarshals an Object from its single value representation.
abstract String toString(Object obj)
Marshals an Object into a single value representation.
[Expand]
Inherited Methods
From interface com.thoughtworks.xstream.converters.ConverterMatcher

Public Methods

public abstract Object fromString (String str)

Unmarshals an Object from its single value representation.

Parameters
str the String with the single value of the Object
Returns
  • the Object

public abstract String toString (Object obj)

Marshals an Object into a single value representation.

Parameters
obj the Object to be converted
Returns
  • a String with the single value of the Object or null