org.drools.smf
Interface SemanticModule

All Known Implementing Classes:
SimpleSemanticModule

public interface SemanticModule

Collection of entities forming a semantic module.

Author:
bob mcwhirter
See Also:
org.drools.spi

Field Summary
static SemanticModule[] EMPTY_ARRAY
          Empty SemanticModule array.
 
Method Summary
 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()
           
 ExtractorFactory getExtractorFactory(java.lang.String name)
          Retrieve a semantic extractor by name.
 java.util.Set getExtractorFactoryNames()
          Retrieve the set of all object type names.
 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 getUri()
          Retrieve the URI that identifies this semantic module.
 

Field Detail

EMPTY_ARRAY

public static final SemanticModule[] EMPTY_ARRAY
Empty SemanticModule array.

Method Detail

getUri

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

Returns:
The URI.

getRuleFactory

public RuleFactory getRuleFactory(java.lang.String name)

getRuleFactoryNames

public java.util.Set getRuleFactoryNames()

getObjectTypeFactory

public 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

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

Returns:
The set of names.

getConditionFactory

public 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

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

Returns:
The set of names.

getExtractorFactory

public ExtractorFactory getExtractorFactory(java.lang.String name)
Retrieve a semantic extractor by name.

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

getExtractorFactoryNames

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

Returns:
The set of names.

getConsequenceFactory

public 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

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

Returns:
The set of names.

getDurationFactory

public DurationFactory getDurationFactory(java.lang.String name)

getDurationFactoryNames

public java.util.Set getDurationFactoryNames()