|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.smf.SimpleSemanticModule
public class SimpleSemanticModule
Simple implementation of a Semantic Module.
org.drools.spi| Field Summary |
|---|
| Fields inherited from interface org.drools.smf.SemanticModule |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
SimpleSemanticModule(java.lang.String uri)
Construct with a URI. |
|
| Method Summary | |
|---|---|
void |
addApplicationDataFactory(java.lang.String name,
ApplicationDataFactory factory)
|
void |
addConditionFactory(java.lang.String name,
ConditionFactory factory)
Add a semantic ConditionFactory. |
void |
addConsequenceFactory(java.lang.String name,
ConsequenceFactory factory)
Add a semantic ConsequenceFactory. |
void |
addDurationFactory(java.lang.String name,
DurationFactory factory)
|
void |
addFunctionsFactory(java.lang.String name,
FunctionsFactory factory)
|
void |
addImportEntryFactory(java.lang.String name,
ImportEntryFactory factory)
|
void |
addObjectTypeFactory(java.lang.String name,
ObjectTypeFactory factory)
Add a semantic ObjectTypeFactory. |
void |
addRuleFactory(java.lang.String name,
RuleFactory factory)
|
ApplicationDataFactory |
getApplicationDataFactory(java.lang.String name)
|
java.util.Set |
getApplicationDataFactoryNames()
|
ConditionFactory |
getConditionFactory(java.lang.String name)
Retrieve a semantic condition by name. |
java.util.Set |
getConditionFactoryNames()
Retrieve the set of all condition names. |
ConsequenceFactory |
getConsequenceFactory(java.lang.String name)
Retrieve a semantic consequence by name. |
java.util.Set |
getConsequenceFactoryNames()
Retrieve the set of all consequence names. |
DurationFactory |
getDurationFactory(java.lang.String name)
|
java.util.Set |
getDurationFactoryNames()
|
FunctionsFactory |
getFunctionsFactory(java.lang.String name)
|
java.util.Set |
getFunctionsFactoryNames()
|
ImportEntryFactory |
getImportEntryFactory(java.lang.String name)
|
java.util.Set |
getImportEntryFactoryNames()
|
ObjectTypeFactory |
getObjectTypeFactory(java.lang.String name)
Retrieve a semantic object type by name. |
java.util.Set |
getObjectTypeFactoryNames()
Retrieve the set of all object type names. |
RuleFactory |
getRuleFactory(java.lang.String name)
|
java.util.Set |
getRuleFactoryNames()
|
java.lang.String |
getType(java.lang.String name)
|
java.lang.String |
getUri()
Retrieve the URI that identifies this semantic module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSemanticModule(java.lang.String uri)
uri - The URI the identifies this semantic module.| Method Detail |
|---|
public java.lang.String getUri()
SemanticModule
getUri in interface SemanticModuleSemanticModulepublic java.lang.String getType(java.lang.String name)
getType in interface SemanticModule
public void addRuleFactory(java.lang.String name,
RuleFactory factory)
public RuleFactory getRuleFactory(java.lang.String name)
getRuleFactory in interface SemanticModuleSemanticModulepublic java.util.Set getRuleFactoryNames()
getRuleFactoryNames in interface SemanticModule
public void addObjectTypeFactory(java.lang.String name,
ObjectTypeFactory factory)
ObjectTypeFactory.
name - The object type name.factory - The object type factory.public ObjectTypeFactory getObjectTypeFactory(java.lang.String name)
SemanticModule
getObjectTypeFactory in interface SemanticModulename - the name.
null if none is
bound to the name.SemanticModulepublic java.util.Set getObjectTypeFactoryNames()
SemanticModule
getObjectTypeFactoryNames in interface SemanticModuleSemanticModule
public void addConditionFactory(java.lang.String name,
ConditionFactory factory)
ConditionFactory.
name - The condition name.factory - The condition factory.public ConditionFactory getConditionFactory(java.lang.String name)
SemanticModule
getConditionFactory in interface SemanticModulename - the name.
null if none is
bound to the name.SemanticModulepublic java.util.Set getConditionFactoryNames()
SemanticModule
getConditionFactoryNames in interface SemanticModuleSemanticModule
public void addConsequenceFactory(java.lang.String name,
ConsequenceFactory factory)
ConsequenceFactory.
name - The consequence name.factory - The consequence factory.public ConsequenceFactory getConsequenceFactory(java.lang.String name)
SemanticModule
getConsequenceFactory in interface SemanticModulename - the name.
null if none is
bound to the name.SemanticModulepublic java.util.Set getConsequenceFactoryNames()
SemanticModule
getConsequenceFactoryNames in interface SemanticModuleSemanticModule
public void addDurationFactory(java.lang.String name,
DurationFactory factory)
public DurationFactory getDurationFactory(java.lang.String name)
getDurationFactory in interface SemanticModulepublic java.util.Set getDurationFactoryNames()
getDurationFactoryNames in interface SemanticModule
public void addImportEntryFactory(java.lang.String name,
ImportEntryFactory factory)
addImportEntryFactory in interface SemanticModulepublic ImportEntryFactory getImportEntryFactory(java.lang.String name)
getImportEntryFactory in interface SemanticModulepublic java.util.Set getImportEntryFactoryNames()
getImportEntryFactoryNames in interface SemanticModule
public void addApplicationDataFactory(java.lang.String name,
ApplicationDataFactory factory)
addApplicationDataFactory in interface SemanticModulepublic ApplicationDataFactory getApplicationDataFactory(java.lang.String name)
getApplicationDataFactory in interface SemanticModulepublic java.util.Set getApplicationDataFactoryNames()
getApplicationDataFactoryNames in interface SemanticModule
public void addFunctionsFactory(java.lang.String name,
FunctionsFactory factory)
public FunctionsFactory getFunctionsFactory(java.lang.String name)
getFunctionsFactory in interface SemanticModulepublic java.util.Set getFunctionsFactoryNames()
getFunctionsFactoryNames in interface SemanticModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||