|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.FudgeFieldType<SecondaryType>
org.fudgemsg.types.SecondaryFieldTypeBase<Calendar,Object,FudgeDateTime>
org.fudgemsg.types.secondary.JavaUtilCalendarFieldType
public class JavaUtilCalendarFieldType
Secondary type for Calendar
conversion to/from a FudgeTime
, FudgeDate
or FudgeDateTime
transport object.
Field Summary | |
---|---|
static JavaUtilCalendarFieldType |
INSTANCE
Singleton instance of the type. |
Method Summary | |
---|---|
boolean |
canConvertPrimary(Class<?> javaType)
Returns true if this converter can manipulate the requested class. |
protected Calendar |
primaryToSecondary(FudgeDate object)
Primary to secondary conversion, where the primary type is a FudgeDate . |
protected Calendar |
primaryToSecondary(FudgeDateTime object)
Primary to secondary conversion, where the primary type is a FudgeDateTime . |
protected Calendar |
primaryToSecondary(FudgeTime object)
Primary to secondary conversion, where the primary type is a FudgeTime . |
Calendar |
primaryToSecondary(Object object)
Converts an object to the secondary type this converter supports. |
FudgeDateTime |
secondaryToPrimary(Calendar object)
Converts an object from the secondary type to a primitive Fudge type for writing. |
Methods inherited from class org.fudgemsg.types.SecondaryFieldTypeBase |
---|
getPrimaryType, getVariableSize, readValue, writeValue |
Methods inherited from class org.fudgemsg.FudgeFieldType |
---|
equals, getFixedSize, getJavaType, getTypeId, hashCode, isVariableSize, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final JavaUtilCalendarFieldType INSTANCE
Method Detail |
---|
public FudgeDateTime secondaryToPrimary(Calendar object)
object
parameter is not null
.
secondaryToPrimary
in class SecondaryFieldTypeBase<Calendar,Object,FudgeDateTime>
object
- the secondary instance
public Calendar primaryToSecondary(Object object)
object
- to convert
protected Calendar primaryToSecondary(FudgeDateTime object)
FudgeDateTime
.
object
- primary object
Calendar
objectprotected Calendar primaryToSecondary(FudgeDate object)
FudgeDate
.
object
- primary object
Calendar
objectprotected Calendar primaryToSecondary(FudgeTime object)
FudgeTime
.
object
- primary object
Calendar
objectpublic boolean canConvertPrimary(Class<?> javaType)
javaType
- to query
true
if a call to FudgeTypeConverter.primaryToSecondary(Primary)
will succeed, false
if it would fail
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |