hasCardinality()

Determines if the attribute has the same cardinality as the cardinality value passed in as a parameter. This method is used to test cardinality of complex attributes (subobjects and containers). Valid cardinality values are from 1 to n.

Syntax

public boolean hasCardinality(String card);

Parameters

card
Is the cardinality value to use for checking. Use one of the cardinality constants:
                        CxObjectAttr.MULTIPLECARDSTRING
                        CxObjectAttr.SINGLECARDSTRING

Return values

Returns True if the cardinality of the attribute matches the parameter value; otherwise, returns False.

Copyright IBM Corp. 1997, 2004