Class DataUtils
java.lang.Object
com.inductiveautomation.snap.data.DataUtils
Utility methods for RMProperty.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectconvertValue(Object aValue, Property.Type aType) Converts a given value to a given type.static ObjectconvertValue(Object aValue, Property.Type aType, Property.NumberType aNumberType) Converts a given value to a given type.static Property.TypegetPropertyType(Object anObj) Returns a property type for a given object/class.static StringtoString(Number aNumber, Property.NumberType aNumberType) Returns a string for a number according to given NumberType.static StringtoString(Date aDate, Property.DateType aDateType) Returns a string for a date according to given DateType.
- 
Constructor Details- 
DataUtilspublic DataUtils()
 
- 
- 
Method Details- 
convertValueConverts a given value to a given type.
- 
convertValuepublic static Object convertValue(Object aValue, Property.Type aType, Property.NumberType aNumberType) Converts a given value to a given type.
- 
toStringReturns a string for a number according to given NumberType.
- 
toStringReturns a string for a date according to given DateType.
- 
getPropertyTypeReturns a property type for a given object/class.
 
-