removeAttribute()

Removes a specified attribute from the business object definition's attribute list.

Syntax

public BusObjAttr removeAttribute(int pos);
 public BusObjAttr removeAttribute(String attrName);
 

Parameters

attrName
Is the name of attribute to remove from the business object definition's attribute list.
pos
Is the ordinal position at which to remove the attribute.

Return values

An attribute (BusObjAttr) object that contains the removed attribute.

Exceptions

BusObjNoSuchAttrException
Thrown if the specified attribute does not exist.
BusObjInvalidAttrException
Thrown if the attribute to be removed is one that cannot be removed, such as the ObjectEventId attribute.

Notes

The removeAttribute() method provides the following forms:

Important:
If you specify an ordinal position, make sure that the specified position is not the ObjectEventId attribute.

See also

insertAttribute()

Copyright IBM Corp. 1997, 2004