getDefaultString()

Retrieves the default value of a String attribute in a business object, given the attribute's name or its position in the business object's attribute list.

Syntax

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

Parameters

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

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

Return values

The default value of the specified attribute, as a String value, or null if there is no default value for the attribute.

Exceptions

WrongAttributeException
Thrown if the method is called on a non-String attribute.

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

See also

getDefaultboolean(), getDefaultdouble(), getDefaultfloat(), getDefaultint(), getDefaultlong(), getStringValue()

Copyright IBM Corp. 1997, 2003