Checks whether a specified value is a valid data type for a specified attribute.
Syntax
boolean validData(String attributeName, Object value) boolean validData(String attributeName, BusObj value) boolean validData(String attributeName, BusObjArray value) boolean validData(String attributeName, String value) boolean validData(String attributeName, long value) boolean validData(String attributeName, int value) boolean validData(String attributeName, double value) boolean validData(String attributeName, float value) boolean validData(String attributeName, boolean value)
Parameters
Returns
true or false (boolean return)
Notes
Checks the compatibility of the value passed in with the target attribute
(as specified by attributeName). These are the
criteria:
for primitive types (String, long, int, double, float, boolean) | the value must be convertible to the data type of the attribute |
for a BusObj | the value must have the same type as that of the target attribute |
for a BusObjArray | the value must point to a BusObj or BusObjArray with the same (business object definition) type as that of the attribute |
for an Object | the value must be of type String, BusObj, or BusObjArray. The corresponding validation rules are then applied. |