ReportMill 12 API

com.reportmill.datasource
Class RMDataSourceUtils

java.lang.Object
  extended by com.reportmill.datasource.RMDataSourceUtils

public class RMDataSourceUtils
extends java.lang.Object

Utility methods for RMProperty.


Constructor Summary
RMDataSourceUtils()
           
 
Method Summary
static java.lang.Object convertValue(java.lang.Object aValue, RMProperty.Type aType)
          Converts a given value to a given type.
static java.lang.Object convertValue(java.lang.Object aValue, RMProperty.Type aType, RMProperty.NumberType aNumberType)
          Converts a given value to a given type.
static RMProperty.Type getPropertyType(java.lang.Object anObj)
          Returns a property type for a given object/class.
static java.lang.String toString(java.util.Date aDate, RMProperty.DateType aDateType)
          Returns a string for a date according to given DateType.
static java.lang.String toString(java.lang.Number aNumber, RMProperty.NumberType aNumberType)
          Returns a string for a number according to given NumberType.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMDataSourceUtils

public RMDataSourceUtils()
Method Detail

convertValue

public static java.lang.Object convertValue(java.lang.Object aValue,
                                            RMProperty.Type aType)
Converts a given value to a given type.


convertValue

public static java.lang.Object convertValue(java.lang.Object aValue,
                                            RMProperty.Type aType,
                                            RMProperty.NumberType aNumberType)
Converts a given value to a given type.


toString

public static java.lang.String toString(java.lang.Number aNumber,
                                        RMProperty.NumberType aNumberType)
Returns a string for a number according to given NumberType.


toString

public static java.lang.String toString(java.util.Date aDate,
                                        RMProperty.DateType aDateType)
Returns a string for a date according to given DateType.


getPropertyType

public static RMProperty.Type getPropertyType(java.lang.Object anObj)
Returns a property type for a given object/class.


ReportMill 12 API