public class IlrBOMVocabularyXMLHelper
extends java.lang.Object
IlrBOMVocabularyXMLHelper provides a helper API for the Vocx
XML schema.
You call getIdentifier to retrieve a vocabulary element
identification as described in a vocx XML document.| Constructor and Description |
|---|
IlrBOMVocabularyXMLHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getIdentifier(IlrVocabularyElement vocElt)
Provides an identifier for the given vocabulary element.
|
public static java.lang.String getIdentifier(IlrVocabularyElement vocElt)
The identifier returned by this method has the following protocol:
<Concept> XML element.<Instance> XML element.<Phrase> XML element that defined this sentence.
This identifier is made from:
the Holder attribute + ( + the list of role types separated with ',' + ) + # + the phrase index.
Note: (...) is optional if no role is defined for the
phrase element.
<Phrase Holder="example.customer.name"...>
...
</Phrase>
generates example.customer.name#0 if the phrase element
for this attribute is the first one in the XML document.
The following XML fragment:
<Phrase Holder="example.customer.name"...>
<Role Index="0" Type="int"/>
<Role Index="1" Type="string"/>
</Phrase>
Generates example.customer.name(int,string)#0 if the
phrase element for this method was the first one in the XML document.
Note: this method does not return any identifier for a fact type.
vocElt - A vocabulary element.null is returned.© Copyright IBM Corp. 1987, 2017