|
|||||||||||
| 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.StringToShortConverter
String to Short 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 | |
StringToShortConverter()
Construct the converter. |
|
StringToShortConverter(Short defaultValue)
Construct the converter with a default value. |
|
| Method Summary | |
Object |
convert(Object object,
Object context)
Converts a String to a Short. |
| 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 StringToShortConverter()
public StringToShortConverter(Short defaultValue)
defaultValue - the default value| Method Detail |
public Object convert(Object object,
Object context)
throws ConverterException
convert in class AbstractConverterobject - 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 | ||||||||||