fr.umlv.tatoo.runtime.util
Interface StringConverter

All Known Implementing Classes:
DefaultStringConverter

public interface StringConverter

Permits to convert a string to an object of a specified type.

Author:
Remi
See Also:
XML.unserialize(java.io.Reader, fr.umlv.tatoo.runtime.ast.XMLNodeFactory, StringConverter)

Method Summary
<T> T
convert(String text, Class<T> type)
          Convert a string to a value of type T.
 

Method Detail

convert

<T> T convert(String text,
              Class<T> type)
Convert a string to a value of type T.

Type Parameters:
T - the type of the value.
Parameters:
text - text representation of the value.
type - type of the value.
Returns:
the converted value.