public abstract class IlrTranslationSupport
extends java.lang.Object
IlrCodeGenerator to generate the appropriate code for vocabulary elements.
It provides methods that return:
| Constructor and Description |
|---|
IlrTranslationSupport() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
getProperty(java.lang.String target,
java.lang.String propertyName)
Returns a custom property attached to the specified
target.. |
java.lang.String |
getTargetLanguage()
Returns the target language through the code generator attached to the translator.
|
abstract java.lang.String |
getTranslation(IlrConcept concept,
IlrSyntaxTree.Node node)
Returns the translation template for the specified
concept,
and the specified node. |
abstract java.lang.String |
getTranslation(IlrConceptInstance instance,
IlrSyntaxTree.Node node)
Returns the translation template for the specified
instance,
and the specified node. |
abstract java.lang.String |
getTranslation(IlrSentence sentence,
IlrSyntaxTree.Node node)
Returns the translation template for the specified
sentence,
and the specified Abstract Syntax Tree node. |
IlrBRLTranslator |
getTranslator()
Returns the translator attached to this translation support.
|
abstract java.lang.String |
getTypeString(IlrConcept concept)
Returns the string for the type of the specified
concept. |
abstract java.lang.String |
getValueText(IlrConceptInstance instance)
Returns the value text to be generated, for the specified instance.
|
abstract IlrValueTranslator |
getValueTranslator(java.lang.String target)
Returns the value translator attached to the specified
target. |
abstract java.lang.String |
getValueType(IlrConceptInstance instance)
Returns the string for the type of the specified instance.
|
void |
setTranslator(IlrBRLTranslator translator)
Sets the translator to this translation support.
|
public java.lang.String getTargetLanguage()
IlrCodeGenerator.getTargetLanguage().public IlrBRLTranslator getTranslator()
public void setTranslator(IlrBRLTranslator translator)
translator - The new translator.public abstract java.lang.String getTypeString(IlrConcept concept)
concept.concept - The concept.concept.public abstract java.lang.String getValueText(IlrConceptInstance instance)
instance - The concept instance.instance.public abstract java.lang.String getValueType(IlrConceptInstance instance)
instance - The concept instance.public abstract java.lang.String getTranslation(IlrSentence sentence, IlrSyntaxTree.Node node)
sentence,
and the specified Abstract Syntax Tree node.sentence - The sentence.node - The AST node.sentence, or null.public abstract java.lang.String getTranslation(IlrConceptInstance instance, IlrSyntaxTree.Node node)
instance,
and the specified node.instance - The concept instance.node - The AST node.instance, or null.public abstract java.lang.String getTranslation(IlrConcept concept, IlrSyntaxTree.Node node)
concept,
and the specified node.concept - The concept.node - The AST node.concept, or null.public abstract IlrValueTranslator getValueTranslator(java.lang.String target)
target.target - The identifier of an IlrConcept.null.public abstract java.lang.Object getProperty(java.lang.String target,
java.lang.String propertyName)
target..target - The identifier of an IlrConcept.null.© Copyright IBM Corp. 1987, 2017