setCardinality()

Sets the cardinality of the attribute, for an attribute that represents a child business object or an array of child business objects.

Syntax

public void setCardinality(String cardinality);
 

Parameters

cardinality
Is the cardinality to assign to this attribute. Cardinality is represented by one of the following cardinality constants:
BusObjAttr.CARD_SINGLE
 
  
 BusObjAttr.CARD_MULTIPLE
 
 

Return values

None.

Exceptions

BusObjInvalidAttrException

Thrown if the cardinality is not a valid; that is, it does not contain a valid cardinality constant.

See also

getCardinality()

Copyright IBM Corp. 1997, 2004