|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.messageforge.Converter
Base class for all converters.
Constructor Summary | |
Converter()
|
Method Summary | |
static RMapMessage |
createMsgObject(java.lang.Class cls)
|
static RMapMessage |
createMsgObject(java.lang.String msgName)
|
protected static java.lang.Double |
dateToDouble(RFldDatetime dateTime)
Marshall a RFldDatetime field object as a Double. |
protected static java.lang.Long |
dateToLong(RFldDatetime dateTime)
Marshall a RFldDatetime field object as a Long. |
protected static java.lang.String |
dateToStr(RFldDatetime dateTime)
Marshall a RFldDatetime field object as a string. |
static RBeanValidator |
getBeanValidator()
Get the bean validator instance. |
static boolean |
getLenient()
Get the lenient setting for the date formatter. |
static java.lang.String |
getVersion()
Get the version of the library. |
static void |
setBeanValidator(RBeanValidator beanValidator)
Set bean validator instance. |
protected static void |
setDateFromDouble(RFldDatetime dateTime,
java.lang.Double dblDate)
Ummarshall a RFldDatetime field object from a Double. |
protected static void |
setDateFromLong(RFldDatetime dateTime,
java.lang.Long longDate)
Ummarshall a RFldDatetime field object from a Long. |
protected static void |
setDateFromStr(RFldDatetime dateTime,
java.lang.String strDate)
Ummarshall a RFldDatetime field object from a string. |
static void |
setDefaultFactory(RMsgFactory[] factories)
Set default message factory. |
static void |
setMaximumFractionDigits(int maximumFractionDigits)
Sets the maximum number of digits allowed in the fraction portion of a BigDecimal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Converter()
Method Detail |
public static java.lang.String getVersion()
public static RMapMessage createMsgObject(java.lang.String msgName) throws ConverterException
ConverterException
public static RMapMessage createMsgObject(java.lang.Class cls) throws ConverterException
ConverterException
public static void setDefaultFactory(RMsgFactory[] factories) throws ConverterException
factories
- Default message factories.
ConverterException
public static void setMaximumFractionDigits(int maximumFractionDigits)
8
. If less than 0 then 0 is used.
maximumFractionDigits
- maximum number of digits allowed in the fraction portion of a
BigDecimalpublic static void setBeanValidator(RBeanValidator beanValidator)
beanValidator
- Bean validator instance. This instance will be called to
validate beans.public static RBeanValidator getBeanValidator()
protected static java.lang.String dateToStr(RFldDatetime dateTime)
dateTime
- Datetime field object.
setDateFromStr(RFldDatetime, String)
protected static void setDateFromStr(RFldDatetime dateTime, java.lang.String strDate) throws FieldValidationException
dateTime
- Datetime field object.strDate
- Date. It should have been formatted using dateToStr().
FieldValidationException
dateToStr(RFldDatetime)
protected static java.lang.Long dateToLong(RFldDatetime dateTime)
dateTime
- Datetime field object.
setDateFromLong(RFldDatetime, Long)
protected static void setDateFromLong(RFldDatetime dateTime, java.lang.Long longDate) throws FieldValidationException
dateTime
- Datetime field object.longDate
- Date.
FieldValidationException
dateToLong(RFldDatetime)
protected static java.lang.Double dateToDouble(RFldDatetime dateTime)
dateTime
- Datetime field object.
setDateFromLong(RFldDatetime, Long)
protected static void setDateFromDouble(RFldDatetime dateTime, java.lang.Double dblDate) throws FieldValidationException
dateTime
- Datetime field object.dblDate
- Date.
FieldValidationException
dateToLong(RFldDatetime)
public static boolean getLenient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |