|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.util.AbstractStringConverter | +--y.util.ReflectionStringConverter
A simple implementation of an ObjectStringConverter, which uses reflection to construct an object from a String representation and the toString() method to construct the String representation from an object.
Field Summary |
Fields inherited from class y.util.AbstractStringConverter |
forClass |
Constructor Summary | |
ReflectionStringConverter(Class forClass)
Creates a new instance of ReflectionSerializer for the given class type |
|
ReflectionStringConverter(Class forClass,
Class nativeType)
Creates a new instance of ReflectionSerializer for native types |
Method Summary | |
protected Object |
convertToObject(String o)
This method must be implemented by subclasses. o will never be the null
String |
protected String |
convertToString(Object o)
This method must be implemented by subclasses. o will never be the null
object. |
Methods inherited from class y.util.AbstractStringConverter |
convertToObject, convertToString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReflectionStringConverter(Class forClass)
public ReflectionStringConverter(Class forClass, Class nativeType)
Method Detail |
protected Object convertToObject(String o) throws IllegalArgumentException
AbstractStringConverter
null
String
convertToObject
in class AbstractStringConverter
IllegalArgumentException
o
- the string representation
protected String convertToString(Object o) throws IllegalArgumentException
AbstractStringConverter
null
object.
convertToString
in class AbstractStringConverter
IllegalArgumentException
o
- the object
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |