Gets the name of a business object based on the content of the serialized data.
Syntax
public String getBOName(Reader serializedData); public String getBOName(String serializedData); public String getBOName(InputStream serializedData);
Parameters
Return values
Returns a String object containing the name of the business object. If no value exists for the NameHandlerClass attribute, this method returns null.
Exceptions
The second and third forms of getBOName() can throw the following exceptions:
Notes
The getBOName() method creates an instance of a name handler to extract the name of the business object definition from the serialized data. It instantiates this name-handler object based on the value of the NameHandlerClass meta-object attribute. The name handler builds the business object name based on the contents of a message.
The getBOName() method has the following forms:
Currently, only the following IBM-delivered data handler use this method:
The default name handler for the XML data handler calls the base class getBOName(Reader data). If the data handler cannot handle the request, the <!DOCTYPE Name is used to extract the base name of the business object. The final name is formed as:
BOPrefix + "_" + Name.getStreamFromBO()
The default name handler for the EDI data handler obtains the name of the business object from the EDI name-handler lookup table.
To create your own name handler, extend the NameHandler abstract base class and override the getBOName() method.
For more information, see "Building a custom XML name handler".