Determines if the attribute has the same cardinality as a specified cardinality value, given the attribute's name or its position in the business object's attribute list.
Syntax
public boolean hasCardinality(String attrName, String card); public boolean hasCardinality(int position, String card);
Parameters
1 - single cardinality n - multiple cardinality
Return values
Returns true if the cardinality of the attribute matches the specified value; otherwise, returns false.
Exceptions
Notes
This method is used to test cardinality of complex attributes (subobjects and arrays).
See also