getAttrASIHashtable()

Parses the application-specific information for any attribute in a business object, given the attribute's name or its position in the business object's attribute list, into name-value pairs.

Syntax

public final Hashtable getAttrASIHashtable(int attrName, 
   String delimiter);
public final Hashtable getAttrASIHashtable(int position, 
   String delimiter);

Parameters

attrName
Is the name of an attribute whose application-specific information is parsed.

delimiter
Is the delimiter between each name-value pair. Use the colon (:) as the delimiter for building the name-value pairs.

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

Return values

A java.util.Hashtable object that contains the name-value pairs in the attribute's application-specific information.

Exceptions

AttributeNotFoundException
Thrown if the specified attribute cannot be found; for example, if the position specified is not valid for the definition of this business object.

WrongASIFormatException
Thrown if the application-specific information does not conform to the name-value format.

Notes

The getAttrASIHashtable() method parses the application-specific information for any attribute and returns a hash table of the name-value pairs. For example, these name/value pairs could appear as:

ASI=CN=colname:FK=attr1:UID=attr2:...

This example assumes that a colon (:) is specified as the delimiter.

Note:
To retrieve one particular name-value pair from attribute application-specific information, use the getAppText() method.

See also

getAppText(),, getBusObjASIHashtable()

Copyright IBM Corp. 1997, 2004