|
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 | |
|---|---|
java.lang.Object |
convertToObject(java.lang.String o,
java.lang.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. |
java.lang.String |
convertToString(java.lang.Object o,
java.lang.Class asClass)
This method takes an object, treats it as an object of the given class type and produces a String representation. |
| Method Detail |
|---|
java.lang.String convertToString(java.lang.Object o,
java.lang.Class asClass)
throws java.lang.IllegalArgumentException
o - the object to convertasClass - the type which should be used to interpret the object, may be less specific than
the actual object's type
java.lang.IllegalArgumentException - if this method is not capable of doing the transformation because of illegal
arguments
java.lang.Object convertToObject(java.lang.String o,
java.lang.Class asClass)
throws java.lang.IllegalArgumentException
o - 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
java.lang.IllegalArgumentException - if this method is not capable of doing the transformation because of illegal
arguments
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||