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