Package com.sforce.ws.bind
Class CalendarCodec
- java.lang.Object
-
- com.sforce.ws.bind.CalendarCodec
-
public class CalendarCodec extends java.lang.ObjectThe CalendarSerializer deserializes a dateTime. Much of the work is done in the base class.- Since:
- 1.0 Dec 2, 2005
- Version:
- 1.0
- Author:
- Sam Ruby (rubys@us.ibm.com) Modified for JAX-RPC @author Rich Scheuerle (scheu@us.ibm.com), http://cheenath.com adopted from Apache AXIS
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATE_FORMATstatic java.lang.StringGMT
-
Constructor Summary
Constructors Constructor Description CalendarCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Calendardeserialize(java.lang.String source)The simple deserializer provides most of the stuff.static java.text.SimpleDateFormatgetDateFormat()java.lang.StringgetValueAsString(java.lang.Object value)
-
-
-
Field Detail
-
DATE_FORMAT
public static final java.lang.String DATE_FORMAT
- See Also:
- Constant Field Values
-
GMT
public static final java.lang.String GMT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDateFormat
public static java.text.SimpleDateFormat getDateFormat()
-
getValueAsString
public java.lang.String getValueAsString(java.lang.Object value)
-
deserialize
public java.util.Calendar deserialize(java.lang.String source)
The simple deserializer provides most of the stuff. We just need to override makeValue().- Parameters:
source- source string to deserialize- Returns:
- calendar created
-
-