|
|||||||||||
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.StringToLongConverter
String to Long 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 | |
StringToLongConverter()
Construct the converter. |
|
StringToLongConverter(Long defaultValue)
Construct the converter with a default value. |
Method Summary | |
Object |
convert(Object object,
Object context)
Converts a String to a Long. |
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 StringToLongConverter()
public StringToLongConverter(Long 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 |