|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ObjectStringConverter
Interface for classes which can convert Objects to String representations and vice versa
| Method Summary | |
|---|---|
Object |
convertToObject(String o,
Class asClass)
This method takes a String, and tries to interpret it as a String representation of the given class type, which it will then create. |
String |
convertToString(Object o,
Class asClass)
This method takes an object, treats it as an object of the given class type and produces a String representation. |
| Method Detail |
|---|
String convertToString(Object o,
Class asClass)
throws IllegalArgumentException
IllegalArgumentException - if this method is not capable of doing the transformation because of illegal
argumentso - the object to convertasClass - the type which should be used to interpret the object, may be less specific than
the actual object's type
Object convertToObject(String o,
Class asClass)
throws IllegalArgumentException
IllegalArgumentException - if this method is not capable of doing the transformation because of illegal
argumentso - the String to convertasClass - the type which should be generated by this method. the method is
free to create a more specific type, but that type must be assignment compatible
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||