org.drools.smf
Interface SemanticModule

All Known Implementing Classes:
SimpleSemanticModule

public interface SemanticModule

Collection of entities forming a semantic module.

See Also:
org.drools.spi

Field Summary
static SemanticModule[] EMPTY_ARRAY
          Empty SemanticModule array.
 
Method Summary
 void addApplicationDataFactory(java.lang.String name, ApplicationDataFactory factory)
           
 void addImportEntryFactory(java.lang.String name, ImportEntryFactory 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.
 

Field Detail

EMPTY_ARRAY

static final SemanticModule[] EMPTY_ARRAY
Empty SemanticModule array.

Method Detail

getUri

java.lang.String getUri()
Retrieve the URI that identifies this semantic module.

Returns:
The URI.

getType

java.lang.String getType(java.lang.String name)

getRuleFactory

RuleFactory getRuleFactory(java.lang.String name)

getRuleFactoryNames

java.util.Set getRuleFactoryNames()

getObjectTypeFactory

ObjectTypeFactory getObjectTypeFactory(java.lang.String name)
Retrieve a semantic object type by name.

Parameters:
name - the name.
Returns:
The object type implementation or null if none is bound to the name.

getObjectTypeFactoryNames

java.util.Set getObjectTypeFactoryNames()
Retrieve the set of all object type names.

Returns:
The set of names.

getConditionFactory

ConditionFactory getConditionFactory(java.lang.String name)
Retrieve a semantic condition by name.

Parameters:
name - the name.
Returns:
The condition implementation or null if none is bound to the name.

getConditionFactoryNames

java.util.Set getConditionFactoryNames()
Retrieve the set of all condition names.

Returns:
The set of names.

getConsequenceFactory

ConsequenceFactory getConsequenceFactory(java.lang.String name)
Retrieve a semantic consequence by name.

Parameters:
name - the name.
Returns:
The consequence implementation or null if none is bound to the name.

getConsequenceFactoryNames

java.util.Set getConsequenceFactoryNames()
Retrieve the set of all consequence names.

Returns:
The set of names.

getDurationFactory

DurationFactory getDurationFactory(java.lang.String name)

getDurationFactoryNames

java.util.Set getDurationFactoryNames()

addImportEntryFactory

void addImportEntryFactory(java.lang.String name,
                           ImportEntryFactory factory)

getImportEntryFactory

ImportEntryFactory getImportEntryFactory(java.lang.String name)

getImportEntryFactoryNames

java.util.Set getImportEntryFactoryNames()

addApplicationDataFactory

void addApplicationDataFactory(java.lang.String name,
                               ApplicationDataFactory factory)

getApplicationDataFactory

ApplicationDataFactory getApplicationDataFactory(java.lang.String name)

getApplicationDataFactoryNames

java.util.Set getApplicationDataFactoryNames()

getFunctionsFactory

FunctionsFactory getFunctionsFactory(java.lang.String name)

getFunctionsFactoryNames

java.util.Set getFunctionsFactoryNames()