public class IlrStringValueDescriptor extends IlrAbstractValueDescriptor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
ID of the String Value Descriptor
|
concept| Constructor and Description |
|---|
IlrStringValueDescriptor(IlrConcept concept)
Creates a
String value descriptor. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkValue(IlrSyntaxTree.Node node,
java.lang.Object value)
Checks a value.
|
java.lang.String |
getDefaultValue(IlrBRLDefinition definition)
Returns the default value of a value descriptor.
|
java.lang.String |
getLocalizedText(java.lang.Object value,
IlrBRLDefinition definition)
Returns the localized text 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). |
getConcept, getParsableRepresentation, getValuepublic static final java.lang.String ID
public IlrStringValueDescriptor(IlrConcept concept)
String value descriptor.concept - The associated concept.public boolean checkValue(IlrSyntaxTree.Node node, java.lang.Object value)
IlrValueDescriptornode - The abstract syntax tree node that holds the value.value - The value to check.public java.lang.Object getValue(java.lang.String persistentText)
IlrValueDescriptorjava.util.Date).persistentText - The value (not localized).public java.lang.String getPersistentText(java.lang.Object value)
IlrValueDescriptorvalue - The value.public java.lang.Object getValue(java.lang.String text,
IlrBRLDefinition definition)
IlrValueDescriptorjava.util.Date).text - The localized text (in a form that matches the parsable representation).definition - The business rule language definition.public java.lang.String getLocalizedText(java.lang.Object value,
IlrBRLDefinition definition)
IlrValueDescriptorvalue - The value.definition - The business rule language definition.public java.lang.String getDefaultValue(IlrBRLDefinition definition)
IlrAbstractValueDescriptorgetDefaultValue in interface IlrValueDescriptorgetDefaultValue in class IlrAbstractValueDescriptordefinition - The value descriptor.definition.© Copyright IBM Corp. 1987, 2017