getStringValue()

Retrieves the 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 getStringValue(String attrName);
public String getStringValue(int position);

Parameters

attrName
Is the name of an attribute whose 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 String value of the specified attribute.

Exceptions

WrongAttributeException
Thrown if the method is called on an attribute that is not have an object type.
AttributeNotFoundException
Thrown if the position or name specified is not valid for the definition of this business object.

See also

getAttrName(),, getbooleanValue(),, getBusObjValue(),, getDefaultString(),, getdoubleValue(),, getfloatValue(),, getintValue(),, getlongValue(),, getLongTextValue(),, setStringValue()

Copyright IBM Corporation 1997, 2004. All Rights Reserved.