public class

CurrencyConverter

extends AbstractSingleValueConverter
java.lang.Object
   ↳ com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
     ↳ com.thoughtworks.xstream.converters.extended.CurrencyConverter

Class Overview

Converts a java.util.Currency to String. Despite the name of this class, it has nothing to do with converting currencies between exchange rates! It makes sense in the context of XStream.

Summary

Public Constructors
CurrencyConverter()
Public Methods
boolean canConvert(Class type)
Determines whether the converter can marshall a particular type.
Object fromString(String str)
Unmarshals an Object from its single value representation.
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
From class java.lang.Object
From interface com.thoughtworks.xstream.converters.ConverterMatcher
From interface com.thoughtworks.xstream.converters.SingleValueConverter

Public Constructors

public CurrencyConverter ()

Public Methods

public boolean canConvert (Class type)

Determines whether the converter can marshall a particular type.

Parameters
type the Class representing the object type to be converted

public 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