|
|||||||||||
| 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.LongTypeHandler
Parses and formats between Strings and Longs.
Copyright 2002 Sapient
| Constructor Summary | |
LongTypeHandler()
|
|
| Method Summary | |
Object |
toObject(Class type,
String stringValue)
Parses a string into a Long object. |
String |
toString(Object objectValue)
Formats an Long 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 LongTypeHandler()
| Method Detail |
public Object toObject(Class type,
String stringValue)
throws TypeConversionException
Parses a string into a Long object.
toObject in interface ConfigurationTypeHandlertype - StringstringValue - the String representation of the requested Long
TypeConversionException - when the string does not represent
a valid Longpublic String toString(Object objectValue)
Formats an Long into a String value.
toString in interface ConfigurationTypeHandlerobjectValue - the Long to be formatted
ClassCastException - when past an object other than a Long
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||