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:
- The first form specifies the attribute to remove by its ordinal
position within the business object definition's attribute
list.
- The second form specifies the attribute to remove by its
attribute name and the ordinal position within the attribute list
at which to add this attribute.
- Important:
- If you specify an ordinal position, make sure that the
specified position is not the ObjectEventId
attribute.
See also
insertAttribute()
