|
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(java.lang.Class forClass)
Creates a new instance of ReflectionSerializer for the given class type |
|
ReflectionStringConverter(java.lang.Class forClass,
java.lang.Class nativeType)
Creates a new instance of ReflectionSerializer for native types |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
convertToObject(java.lang.String o)
This method must be implemented by subclasses. o will never be the null
String |
protected java.lang.String |
convertToString(java.lang.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(java.lang.Class forClass)
public ReflectionStringConverter(java.lang.Class forClass,
java.lang.Class nativeType)
| Method Detail |
|---|
protected java.lang.Object convertToObject(java.lang.String o)
throws java.lang.IllegalArgumentException
AbstractStringConverternull
String
convertToObject in class AbstractStringConvertero - the string representation
java.lang.IllegalArgumentException - if the method was unable to do the transformation
protected java.lang.String convertToString(java.lang.Object o)
throws java.lang.IllegalArgumentException
AbstractStringConverternull
object.
convertToString in class AbstractStringConvertero - the object
java.lang.IllegalArgumentException - if the method was unable to do the transformation
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||