public abstract class IlrAbstractValueDescriptor extends java.lang.Object implements IlrValueDescriptor, ilog.rules.brl.value.descriptor.IlrValueDescriptorExtension
IlrAbstractValueDescriptor provides part of the implementation of the
IlrValueDescriptor interface.
This class retrieves the parsable representation of a value descriptor
with a property mechanism:
<language>.properties file) with the property
<fully qualified name of BOM type>#valueDescriptor.parsableRepresentation.
valueDescriptor.parsableRepresentation.
| Modifier and Type | Field and Description |
|---|---|
protected IlrConcept |
concept
The concept represented by this value descriptor.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IlrAbstractValueDescriptor(IlrConcept concept)
Initializes an abstract value descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
IlrConcept |
getConcept()
Returns the concept represented by this value descriptor.
|
java.lang.String |
getDefaultValue(IlrBRLDefinition definition)
Returns the default value of a value descriptor.
|
java.lang.String |
getParsableRepresentation(IlrBRLDefinition definition)
Returns the parsable representation of this value descriptor.
|
java.lang.Object |
getValue(java.lang.String text,
IlrBRLDefinition definition,
boolean strict)
Returns an object that represents a string value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckValue, getLocalizedText, getPersistentText, getValue, getValueprotected final IlrConcept concept
protected IlrAbstractValueDescriptor(IlrConcept concept)
concept - The associated concept.public final IlrConcept getConcept()
getConcept in interface IlrValueDescriptorpublic java.lang.String getParsableRepresentation(IlrBRLDefinition definition)
getParsableRepresentation in interface IlrValueDescriptordefinition - The value descriptor.definition.public java.lang.String getDefaultValue(IlrBRLDefinition definition)
getDefaultValue in interface IlrValueDescriptordefinition - The value descriptor.definition.public java.lang.Object getValue(java.lang.String text,
IlrBRLDefinition definition,
boolean strict)
IlrValueDescriptor.getValue(text, definition).
If strict is set to true, concrete subclasses of
IlrAbstractValueDescriptor can implement strict parsing for
text if applicable.text - 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)© Copyright IBM Corp. 1987, 2017