|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjetif.Handler
jetif.handler.ArrayHandler
The ArrayHandler is used to handle array object.
| Constructor Summary | |
ArrayHandler()
Default contructor |
|
| Method Summary | |
boolean |
matches(String value,
String type,
Object obj)
Indicate an object matches the expected value. |
boolean |
reusable()
Indicate that if this handler can be reuse for different object. |
boolean |
supports(String type,
Class clazz)
Test if a type can be converted to specified class with this handler. |
Object |
toObject(String value,
String type,
Class clazz)
Convert a string value to object of specified class. |
String |
toString(Object obj)
Convert a result object to string. |
| Methods inherited from class jetif.Handler |
getProperty, getProperty, isInstanceClass, setProperties |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayHandler()
| Method Detail |
public Object toObject(String value,
String type,
Class clazz)
throws UnsupportedTypeException,
ConversionException
Handler
toObject in class Handlervalue - the string value to be converted.type - the desired type in spec, it may be a derived class
of the target class, and will be null if it's not defined.clazz - the specified type of object.
ConversionException - error occurs when convert the object.
UnsupportedTypeException - occurs if the desired class not supported
by this handler.public String toString(Object obj)
HandlerMethodResult.getActual().
toString in class Handlerobj - the object to be converted.
MethodResult.getActual()
public boolean matches(String value,
String type,
Object obj)
Handler
matches in class Handlervalue - the expected value.type - the desired type in spec.obj - the object to be tested.
public boolean reusable()
Handler
reusable in class Handler
public boolean supports(String type,
Class clazz)
Handler
supports in class Handlertype - the desired type in spec, it may be a derived class of
target class, and will be null if undefined.clazz - the target class.
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||