public interface IlrValueTranslator
A value translator is used by code generators to generate
a target code (IRL by default) for a given value.
You register a value translator implementation on BOM types with the custom property
valueTranslator.<target code>.
Note: Implementors of value translator should consider sub-classing IlrAbstractValueTranslator
instead of implementing this interface.
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowValueWrapping()
Indicates if the text returned by
translateValue(String, IlrConcept, IlrVocabulary) can be wrapped by the CodeGenerator. |
java.lang.String |
translateValue(java.lang.String value,
IlrConcept concept,
IlrVocabulary vocabulary)
Generates IRL code from a value string.
|
java.lang.String translateValue(java.lang.String value,
IlrConcept concept,
IlrVocabulary vocabulary)
value - The string representing the value, as it is saved in the abstract syntax tree.concept - The concept.vocabulary - The vocabulary.boolean allowValueWrapping()
translateValue(String, IlrConcept, IlrVocabulary) can be wrapped by the CodeGenerator.© Copyright IBM Corp. 1987, 2017