boolean isRequired(String attribute)
Returns true if the attribute is required; returns false if it is not required.
If an attribute is defined as required, it must have a value and the value must not be a null.
The following example logs a warning if a required attribute has a null value.
if ( (customer.isRequired("Address")) && (customerBusObj.isNull("Address)) ) { logWarning(12, "Address is required and cannot be null."); } else { //do something else }