public class IlrPropertyBOMDomainValueProvider extends java.lang.Object implements IlrBOMDomainValueProvider
| Constructor and Description |
|---|
IlrPropertyBOMDomainValueProvider(java.util.ResourceBundle resources)
This constructor initializes a property BOM domain value provider from a resource bundle.
|
IlrPropertyBOMDomainValueProvider(java.lang.String resourceFile,
java.lang.ClassLoader classLoader)
This constructor initializes a property BOM domain value provider from a resource file and a class loader.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBOM2XOMMapping(java.lang.String valueName)
Returns the BOM to XOM mapping of the given value name.
|
java.lang.String |
getDisplayText(java.lang.String valueName,
java.util.Locale locale)
Returns the display text of the given value name.
|
java.lang.String |
getDocumentation(java.lang.String valueName,
java.util.Locale locale)
Returns the documentation of the given value name.
|
java.util.Map |
getProperties(java.lang.String valueName)
Returns a map of properties associated to the given value name.
|
java.lang.String |
getTranslation(java.lang.String valueName)
Returns the translation of the given value name.
|
java.util.Collection |
getValues(IlrClass clazz)
This implementation of
IlrBOMDomainValueProvider.getValues() retrieves values stored in the resource file associated to
this object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposepublic IlrPropertyBOMDomainValueProvider(java.util.ResourceBundle resources)
resources - public IlrPropertyBOMDomainValueProvider(java.lang.String resourceFile,
java.lang.ClassLoader classLoader)
resourceFile - the .properties file containing the valuesclassLoader - the class loader to be used to load the resource filepublic java.util.Collection getValues(IlrClass clazz)
IlrBOMDomainValueProvider.getValues() retrieves values stored in the resource file associated to
this object. List of values can be both specified by a <fqn>.values property, where fqn is the fully qualified name of the class
Value of this property is a list of comma-separated elements.
If no <fqn>.values is provided, this method retrieves all values from all registered keys in this resource file.getValues in interface IlrBOMDomainValueProviderclazz - The BOM class for which this value provider is used.public java.lang.String getDisplayText(java.lang.String valueName,
java.util.Locale locale)
getDisplayText in interface IlrBOMDomainValueProvidervalueName - the name of the valuelocale - the Locale for which this label is askedpublic java.lang.String getDocumentation(java.lang.String valueName,
java.util.Locale locale)
getDocumentation in interface IlrBOMDomainValueProvidervalueName - the name of the valuelocale - the Locale for which this documentation is askedpublic java.util.Map getProperties(java.lang.String valueName)
getProperties in interface IlrBOMDomainValueProvidervalueName - the name of the valuepublic java.lang.String getTranslation(java.lang.String valueName)
getTranslation in interface IlrBOMDomainValueProvidervalueName - the name of the valuepublic java.lang.String getBOM2XOMMapping(java.lang.String valueName)
getBOM2XOMMapping in interface IlrBOMDomainValueProvidervalueName - The name of the value.© Copyright IBM Corp. 1987, 2017