|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.codehaus.spice.converter.AbstractConverter | +--org.codehaus.spice.converter.lib.StringToIntegerConverter
String to Integer converter.
Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and binary numbers begin with 0b, all other values are assumed to be decimal.
Constructor Summary | |
StringToIntegerConverter()
Construct the converter. |
|
StringToIntegerConverter(Integer defaultValue)
Construct the converter with a default value. |
Method Summary | |
Object |
convert(Object object,
Object context)
Converts a String to an Integer. |
Methods inherited from class org.codehaus.spice.converter.AbstractConverter |
convert, noConvert |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringToIntegerConverter()
public StringToIntegerConverter(Integer defaultValue)
defaultValue
- the default valueMethod Detail |
public Object convert(Object object, Object context) throws ConverterException
convert
in class AbstractConverter
object
- the original object to convertcontext
- the context in which to convert object (unused)
ConverterException
- if error converting object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |