getDefault()

Retrieves the default value for this attribute, given the attribute's name or its position in the business object's attribute list.

Syntax

public String getDefault(String attrName);
public String getDefault(int position);

Parameters

attrName
Is the name of an attribute whose default value is retrieved.

position
Is an integer that specifies the ordinal yposition of an attribute in the business object's attribute list.

Return values

The String containing the default value of the attribute. If no default value exists for the attribute, the method returns an empty string.

Exceptions

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

Copyright IBM Corp. 1997, 2004