ILOG JRules

ilog.rules.brl.value.descriptor
Class IlrAbstractValueDescriptor

java.lang.Object
  extended by ilog.rules.brl.value.descriptor.IlrAbstractValueDescriptor
All Implemented Interfaces:
IlrValueDescriptor, ilog.rules.brl.value.descriptor.IlrValueDescriptorExtension
Direct Known Subclasses:
IlrCharacterValueDescriptor, IlrDateValueDescriptor, IlrDecoratedValueDescriptor, IlrNumberValueDescriptor, IlrStringValueDescriptor

public abstract class IlrAbstractValueDescriptor
extends Object
implements IlrValueDescriptor, ilog.rules.brl.value.descriptor.IlrValueDescriptorExtension

Provide a part of the implementation of the interface IlrValueDescriptor. This class retrieves the parsable representation of the value descriptor with a property mechanism :


Field Summary
protected  IlrConcept concept
          The concept represented by this value descriptor.
 
Constructor Summary
protected IlrAbstractValueDescriptor(IlrConcept concept)
          Initializes an abstract value descriptor.
 
Method Summary
 IlrConcept getConcept()
          Returns the concept attached to this value descriptor.
 String getDefaultValue(IlrBRLDefinition definition)
          Returns a default value (in a localized text) for this type of value.
 String getParsableRepresentation(IlrBRLDefinition definition)
          Returns the regular expression that represents the value in a locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.rules.brl.value.descriptor.IlrValueDescriptor
checkValue, getLocalizedText, getPersistentText, getValue, getValue
 

Field Detail

concept

protected final IlrConcept concept
The concept represented by this value descriptor.

Constructor Detail

IlrAbstractValueDescriptor

protected IlrAbstractValueDescriptor(IlrConcept concept)
Initializes an abstract value descriptor.

Parameters:
concept - The associated concept.
Method Detail

getConcept

public final IlrConcept getConcept()
Description copied from interface: IlrValueDescriptor
Returns the concept attached to this value descriptor.

Specified by:
getConcept in interface IlrValueDescriptor

getParsableRepresentation

public String getParsableRepresentation(IlrBRLDefinition definition)
Description copied from interface: IlrValueDescriptor
Returns the regular expression that represents the value in a locale.

Specified by:
getParsableRepresentation in interface IlrValueDescriptor
Parameters:
definition - The business rule language definition.

getDefaultValue

public String getDefaultValue(IlrBRLDefinition definition)
Description copied from interface: IlrValueDescriptor
Returns a default value (in a localized text) for this type of value.

Specified by:
getDefaultValue in interface IlrValueDescriptor
Parameters:
definition - The business rule language definition.

ILOG JRules