See: Description
| Interface | Description |
|---|---|
| IlrBOMDomainValueProvider | Deprecated |
| IlrBOMTransformer |
Instances of this class can be used to apply transformations to an existing bom.
|
| IlrBOMVocabulary |
IlrBOMVocabulary defines vocabularies mapped on an
IlrObjectModel. |
| IlrBOMVocabularyBuilder.ErrorReporter |
This interface specifies the contract of an error reporter that can be attached to this builder
|
| IlrBOMVocabularySet |
This interface defines vocabulary sets that contain instances of
IlrBOMVocabulary. |
| Class | Description |
|---|---|
| IlrBOMVocabularyBuilder |
This class is a helper to create a Vocabulary from an Object Model.
|
| IlrBOMVocabularyBuilder.CollectionDomain |
This class represents a Collection Domain
|
| IlrBOMVocabularyBuilder.Domain |
This nested class represents a Domain that can be associated to a concept, a phrase or a role.
|
| IlrBOMVocabularyBuilder.EnumDomain |
This class represents an Enum Domain
|
| IlrBOMVocabularyBuilder.LiteralDomain |
This class represents a Literal Domain
|
| IlrBOMVocabularyBuilder.MethodSignature |
This nested class represent a Method from the underlying Object Model.
|
| IlrBOMVocabularyBuilder.PropertyMap |
This nested class is a Map of locale-independent and locale-dependent properties.
|
| IlrBOMVocabularyBuilder.Term |
This nested class represents a vocabulary Term that can be used to attached a specific plural, gender and a set of
specific articles to a term.
|
| IlrBOMVocabularyFactory |
Use
IlrBOMVocabularyFactory to create instances of
IlrBOMVocabulary. |
| IlrPropertyBOMDomainValueProvider | Deprecated |
A vocabulary is composed of a:
{last name} of {this} is a navigation phrase for the
attribute Customer.lastName.in {this}, display the message {0} is an action phrase for
the method Session.displayMessage(String).public static final attribute of
a class with same type as this class. For example, Minivan is a constant
for the public static final attribute CarGroup.Minivan.Whether a vocabulary element is a business term, a phrase, or a constant depends on the nature of its corresponding business element.
A BOM Vocabulary is a vocabulary which is tightly tied to an IlrObjectModel,
in which concepts represent classes, and fact types are mapped on members.
The following code example shows how to use a IlrBOMVocabularyFactory
instance class to create a vocabulary from a BOM.
Locale vocabularyLocale = new Locale("en", "US");
IlrVocabularyGeneratorConfiguration config = new
IlrVocabularyGeneratorConfiguration(IlrVerbalizationGenerator.BUSINESS);
config.useLegacyAlternates(false);
// Generate minimal vocabulary, only classes and members used by space coverage
config.setModelFilter(new IlrGapReportModelFilter(report));
IlrVocabulary boot = IlrBOMVocabularyHelper.getBootVocabulary(vocabularyLocale);
IlrBOMVocabulary vocTmp = IlrBOMVocabularyHelper.loadBOMVocabulary(vocabularyLocale, "alltypes", this.getClass().getClassLoader(), "UTF-8");
IlrBOMVocabulary voc = IlrBOMVocabularyFactory.createBOMVocabularySet(
vocabularyLocale,
new IlrBOMVocabulary[] {
(IlrBOMVocabulary) boot,
(IlrBOMVocabulary) vocTmp
},
false);
// Return the verbalization provider
Map rulesetParametersEnglishVerbalization = new HashMap();
rulesetParametersEnglishVerbalization.put("loan", "the loan");
rulesetParametersEnglishVerbalization.put("borrower", "the borrower");
return new IlrDefaultRulesetVerbalizationProvider(voc, rulesetParametersEnglishVerbalization);
© Copyright IBM Corp. 1987, 2017