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