public class IlrBOMTranslationSupport extends IlrTranslationSupport
| Constructor and Description |
|---|
IlrBOMTranslationSupport() |
| Modifier and Type | Method and Description |
|---|---|
ilog.rules.brl.translation.codegen.IlrMemberTranslator |
getMemberTranslator(java.lang.String typeName)
Gets a value translator for the BOM type
typeName. |
java.lang.Object |
getProperty(java.lang.String typeName,
java.lang.String propertyName)
Retrieves a generic BOM property
propertyName on the type named typeName. |
java.lang.String |
getTranslation(IlrConcept concept,
IlrSyntaxTree.Node node)
Returns the translation string for the specified
concept,
identified at the node node in the Abstract Syntax Tree. |
java.lang.String |
getTranslation(IlrConceptInstance instance,
IlrSyntaxTree.Node node)
Returns the translation string for the specified
instance,
identified at the node node in the Abstract Syntax Tree. |
java.lang.String |
getTranslation(IlrSentence sentence,
IlrSyntaxTree.Node node)
Returns the translation string for the specified
sentence,
identified at the node node in the Abstract Syntax Tree. |
java.lang.String |
getTypeString(IlrConcept concept)
Returns the fully-qualified name of the type of a specified
concept. |
java.lang.String |
getValueText(IlrConceptInstance instance)
Returns the IRL representation of the specified
instance. |
IlrValueTranslator |
getValueTranslator(java.lang.String typeName)
Gets a value translator for the BOM type
typeName. |
java.lang.String |
getValueType(IlrConceptInstance instance)
Returns the type of the class declaring the static reference
corresponding to the specified
instance. |
getTargetLanguage, getTranslator, setTranslatorpublic java.lang.String getTypeString(IlrConcept concept)
concept.getTypeString in class IlrTranslationSupportconcept - The concept.public java.lang.String getValueText(IlrConceptInstance instance)
instance.
It first looks for a translation property on the static reference
in the BOM. If there is none, it returns the fully-qualified name
of this static reference.getValueText in class IlrTranslationSupportinstance - The concept instance.public java.lang.String getValueType(IlrConceptInstance instance)
instance.getValueType in class IlrTranslationSupportinstance - The concept instance.instance.public java.lang.String getTranslation(IlrSentence sentence, IlrSyntaxTree.Node node)
sentence,
identified at the node node in the Abstract Syntax Tree.
It looks for a property translation defined on the member corresponding to the
sentence. The search goes up in the class hierarchy from the class
on which the method is called from the rule.getTranslation in class IlrTranslationSupportsentence - The sentence.node - The Abstract Syntax Tree node.null.public java.lang.String getTranslation(IlrConceptInstance instance, IlrSyntaxTree.Node node)
instance,
identified at the node node in the Abstract Syntax Tree.
It looks for a property translation defined on the member corresponding to the
instance. The search goes up in the class hierarchy from the class
on which the member is used in the rule.getTranslation in class IlrTranslationSupportinstance - The concept instance.node - The Abstract Syntax Tree node.null.public java.lang.String getTranslation(IlrConcept concept, IlrSyntaxTree.Node node)
concept,
identified at the node node in the Abstract Syntax Tree.
It looks for a property translation defined on the type corresponding to
concept.getTranslation in class IlrTranslationSupportconcept - The concept.node - The Abstract Syntax Tree node.null.public java.lang.Object getProperty(java.lang.String typeName,
java.lang.String propertyName)
propertyName on the type named typeName.getProperty in class IlrTranslationSupporttypeName - The fully-qualified name of the type.propertyName - The name of the BOM property.null.public IlrValueTranslator getValueTranslator(java.lang.String typeName)
typeName.getValueTranslator in class IlrTranslationSupporttypeName - The fully-qualified name of the type.IlrValueTranslator registered for this type,
or null.public ilog.rules.brl.translation.codegen.IlrMemberTranslator getMemberTranslator(java.lang.String typeName)
typeName.typeName - The fully-qualified name of the type.IlrValueTranslator registered for this type,
or null.© Copyright IBM Corp. 1987, 2017