|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.util.AbstractStringConverter
y.util.ReflectionStringConverter
public class 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
AbstractStringConverternull
String
convertToObject in class AbstractStringConverterIllegalArgumentException - if the method was unable to do the transformationo - the string representation
protected String convertToString(Object o)
throws IllegalArgumentException
AbstractStringConverternull
object.
convertToString in class AbstractStringConverterIllegalArgumentException - if the method was unable to do the transformationo - the object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||