public class IlrDecoratedValueDescriptor extends IlrAbstractValueDescriptor implements IlrDerivedValueDescriptor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DECORATED_VALUE_DESCRIPTOR_PREFIX |
static java.lang.String |
DECORATED_VALUE_DESCRIPTOR_SUFFIX |
concept| Modifier | Constructor and Description |
|---|---|
protected |
IlrDecoratedValueDescriptor(IlrConcept concept,
IlrValueDescriptor refDescriptor) |
| 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 |
getParsableRepresentation(IlrBRLDefinition definition)
Returns the parsable representation of this value descriptor.
|
java.lang.String |
getPersistentText(java.lang.Object value)
Returns the non-localized text that represents the value.
|
java.lang.String |
getPrefix()
Returns the prefix of the decorated value.
|
IlrValueDescriptor |
getReferenceDescriptor()
Returns the value descriptor referenced by the decorated value descriptor.
|
java.lang.String |
getSuffix()
Returns the suffix of the decorated 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). |
java.lang.Object |
getValue(java.lang.String text,
IlrBRLDefinition definition,
boolean strict)
Returns an object that represents a string value.
|
getConceptpublic static final java.lang.String DECORATED_VALUE_DESCRIPTOR_SUFFIX
public static final java.lang.String DECORATED_VALUE_DESCRIPTOR_PREFIX
protected IlrDecoratedValueDescriptor(IlrConcept concept, IlrValueDescriptor refDescriptor)
public IlrValueDescriptor getReferenceDescriptor()
getReferenceDescriptor in interface IlrDerivedValueDescriptorpublic java.lang.String getPrefix()
public java.lang.String getSuffix()
public java.lang.String getParsableRepresentation(IlrBRLDefinition definition)
IlrAbstractValueDescriptorgetParsableRepresentation in interface IlrValueDescriptorgetParsableRepresentation in class IlrAbstractValueDescriptordefinition - The value descriptor.definition.public boolean checkValue(IlrSyntaxTree.Node node, java.lang.Object value)
IlrValueDescriptorcheckValue in interface 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).getValue in interface IlrValueDescriptorpersistentText - The value (not localized).public java.lang.Object getValue(java.lang.String text,
IlrBRLDefinition definition)
IlrValueDescriptorjava.util.Date).getValue in interface IlrValueDescriptortext - The localized text (in a form that matches the parsable representation).definition - The business rule language definition.public java.lang.Object getValue(java.lang.String text,
IlrBRLDefinition definition,
boolean strict)
IlrAbstractValueDescriptorIlrValueDescriptor.getValue(text, definition).
If strict is set to true, concrete subclasses of
IlrAbstractValueDescriptor can implement strict parsing for
text if applicable.getValue in class IlrAbstractValueDescriptortext - Localized text in a form that matches a parsable representation.
For example, a date returns an instance of java.util.Date.definition - The business rule language definition.strict - Set to true so strict parsing of
text is performed.text.IlrValueDescriptor.getValue(java.lang.String text, IlrBRLDefinition definition)public java.lang.String getPersistentText(java.lang.Object value)
IlrValueDescriptorgetPersistentText in interface IlrValueDescriptorvalue - The value.public java.lang.String getLocalizedText(java.lang.Object value,
IlrBRLDefinition definition)
IlrValueDescriptorgetLocalizedText in interface 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