public abstract class IlrValueDescriptorFactory
extends java.lang.Object
ilog.rules.vocabulary.model.IlrConcept.
The default factory can be extended in order to load a value descriptor in a different way.IlrConcept| Modifier and Type | Field and Description |
|---|---|
protected IlrValueDescriptorFactory |
parent
The parent factory
|
| Modifier | Constructor and Description |
|---|---|
protected |
IlrValueDescriptorFactory(IlrValueDescriptorFactory parent)
Constructs a value descriptor factory, with its parent factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected static IlrValueDescriptor |
createValueDescriptor(java.lang.String key,
IlrConcept concept,
java.lang.Class descClass)
Creates a value descriptor.
|
static IlrValueDescriptor |
findValueDescriptor(java.lang.String key,
IlrConcept concept,
java.lang.ClassLoader classLoader,
IlrVocabulary vocabulary)
Tries to load a value descriptor into the value descriptor hierarchy according to the key for that value descriptor.
|
static IlrValueDescriptor |
findValueDescriptor(java.lang.String key,
IlrConcept concept,
java.lang.ClassLoader classLoader,
IlrVocabulary vocabulary,
boolean logError)
Tries to load a value descriptor into the value descriptor hierarchy according to the key for that value descriptor.
|
static IlrValueDescriptorFactory |
getFactory()
Returns the current value descriptor factory.
|
static IlrBRLLogger |
getLogger()
This method retrieves a logger that may have been assigned to this factory.
|
protected static java.lang.Class |
loadClass(java.lang.String className,
java.lang.ClassLoader classLoader)
Tries to load a class, before in the class loader given in parameter and after in the IlrValueDescriptorFactory class loader.
|
protected abstract IlrValueDescriptor |
loadValueDescriptor(java.lang.String key,
IlrConcept concept,
java.lang.ClassLoader classLoader,
IlrVocabulary vocabulary)
Load a value descriptor according to the key that define that value descriptor.
|
static void |
setFactory(IlrValueDescriptorFactory factory)
Sets the new current factory.
|
static void |
setLogger(IlrBRLLogger log)
This method allows setting a logger to this factory.
|
protected final IlrValueDescriptorFactory parent
protected IlrValueDescriptorFactory(IlrValueDescriptorFactory parent)
parent - The parent factory.public static IlrBRLLogger getLogger()
public static void setLogger(IlrBRLLogger log)
log - the logger to be associated to this factory.public static IlrValueDescriptorFactory getFactory()
public static void setFactory(IlrValueDescriptorFactory factory)
factory - The new current factory.protected static IlrValueDescriptor createValueDescriptor(java.lang.String key, IlrConcept concept, java.lang.Class descClass)
ilog.rules.vocabulary.model.IlrConcept.key - The key of the value descriptor.concept - The concept associated to the value descriptor .descClass - The class to instantiate.protected static java.lang.Class loadClass(java.lang.String className,
java.lang.ClassLoader classLoader)
className - The class nameclassLoader - The class loader into which the class is loaded.null if the class does not exist.protected abstract IlrValueDescriptor loadValueDescriptor(java.lang.String key, IlrConcept concept, java.lang.ClassLoader classLoader, IlrVocabulary vocabulary)
key - The key that represent the value descriptorconcept - The associated conceptclassLoader - The class loadervocabulary - The vocabularypublic static IlrValueDescriptor findValueDescriptor(java.lang.String key, IlrConcept concept, java.lang.ClassLoader classLoader, IlrVocabulary vocabulary)
key - The key that represents the value descriptor. An error is logged if the value descriptor is not found.concept - The associated concept.classLoader - The class loader.vocabulary - The vocabulary.public static IlrValueDescriptor findValueDescriptor(java.lang.String key, IlrConcept concept, java.lang.ClassLoader classLoader, IlrVocabulary vocabulary, boolean logError)
key - The key that represents the value descriptor.concept - The associated concept.classLoader - The class loader.vocabulary - The vocabulary.logError - true to log an error if the value descriptor is not found in the factory hierarchy© Copyright IBM Corp. 1987, 2017