|
|||||||||||
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.StringToDateConverter
String to Date converter.
Parses a date according to the same rules as the Date.parse() method. In particular it recognizes the IETF standard date syntax:
"Sat, 12 Aug 1995 13:30:00 GMT"
Date.parse(java.lang.String)
Constructor Summary | |
StringToDateConverter()
Construct the converter. |
|
StringToDateConverter(Date defaultValue)
Construct the converter with a default value. |
Method Summary | |
Object |
convert(Object object,
Object context)
Converts a String to a Date. |
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 StringToDateConverter()
public StringToDateConverter(Date 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 |