Retrieves the cardinality of an
attribute, given the attribute's name or its position in the
business object's attribute list.
Syntax
public String getCardinality(String attrName);
public String getCardinality(int position);
Parameters
- attrName
- Is the name of an attribute whose cardinality is
retrieved.
- position
- Is an integer that specifies the ordinal position of an
attribute in the business object's attribute list.
Return values
A String containing the cardinality of the attribute. The value
of the string is either:
- 1
- attribute has single cardinality or is a simple attribute
- n
- attribute has multiple cardinality
Exceptions
- AttributeNotFoundException
- Thrown if the position or name specified is not valid for the
definition of this business object.
See also
hasCardinality(),,
isMultipleCard()
