|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.sape.carbon.core.config.type.handlers.ShortTypeHandler
Parses and formats between Strings and Shorts.
Copyright 2002 Sapient
| Constructor Summary | |
ShortTypeHandler()
|
|
| Method Summary | |
Object |
toObject(Class type,
String stringValue)
Parses a string into a Short object. |
String |
toString(Object objectValue)
Formats an Short into a String value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ShortTypeHandler()
| Method Detail |
public Object toObject(Class type,
String stringValue)
throws TypeConversionException
Parses a string into a Short object.
toObject in interface ConfigurationTypeHandlertype - StringstringValue - the String representation of the requested Short
TypeConversionException - when the string does not represent
a valid Shortpublic String toString(Object objectValue)
Formats an Short into a String value.
toString in interface ConfigurationTypeHandlerobjectValue - the Short to be formatted
ClassCastException - when past an object other than a Short
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||