public interface IlrValueDescriptor
IlrValueDescriptor represents a value descriptor that describes a
lexical value.
This interface provides the following services for a lexical value:
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkValue(IlrSyntaxTree.Node node,
java.lang.Object value)
Checks a value.
|
IlrConcept |
getConcept()
Returns the concept attached to this value descriptor.
|
java.lang.String |
getDefaultValue(IlrBRLDefinition definition)
Returns a default value (in a localized text) for this type of value.
|
java.lang.String |
getLocalizedText(java.lang.Object value,
IlrBRLDefinition definition)
Returns the localized text that represents the value in a locale.
|
java.lang.String |
getParsableRepresentation(IlrBRLDefinition definition)
Returns the regular expression that represents the value in a locale.
|
java.lang.String |
getPersistentText(java.lang.Object value)
Returns the non-localized text that represents the value.
|
java.lang.Object |
getValue(java.lang.String persistentText)
Returns an object that represents the value (for example, a date returns an instance of
java.util.Date). |
java.lang.Object |
getValue(java.lang.String text,
IlrBRLDefinition definition)
Returns an object that represents the value (for example, a date returns an instance of
java.util.Date). |
IlrConcept getConcept()
java.lang.String getParsableRepresentation(IlrBRLDefinition definition)
definition - The business rule language definition.boolean checkValue(IlrSyntaxTree.Node node, java.lang.Object value)
node - The abstract syntax tree node that holds the value.value - The value to check.java.lang.Object getValue(java.lang.String persistentText)
java.util.Date).persistentText - The value (not localized).java.lang.Object getValue(java.lang.String text,
IlrBRLDefinition definition)
java.util.Date).text - The localized text (in a form that matches the parsable representation).definition - The business rule language definition.java.lang.String getPersistentText(java.lang.Object value)
value - The value.java.lang.String getLocalizedText(java.lang.Object value,
IlrBRLDefinition definition)
value - The value.definition - The business rule language definition.java.lang.String getDefaultValue(IlrBRLDefinition definition)
definition - The business rule language definition.© Copyright IBM Corp. 1987, 2017