isRequiredAttr()

Determines if an attribute is a required attribute for the business object, given the attribute's name or its position in the business object's attribute list. If the attribute is required, it must have a value.

Syntax

public boolean isRequiredAttr(String attrName);
 public boolean isRequiredAttr(int position);
 

Parameters

attrName
Is the name of an attribute that is checked to see if it is required.
position
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

Returns true if the attribute is required for the business object; otherwise, returns false.

Exceptions

AttributeNotFoundException
Thrown if the position or name specified is not valid for the definition of this business object.

Copyright IBM Corp. 1997, 2003