hasName()

Determines if the name of the attribute matches a specified name, given the attribute's name or its position in the business object's attribute list.

Syntax

public boolean hasName(int position, String name);
 

Parameters

name
Is the name of the attribute to test for at the specified attribute position.
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 name matches the specified name; 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