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

Method Summary
 java.lang.Class getCondition(java.lang.String name)
          Retrieve a semantic condition by name.
 java.util.Set getConditionNames()
          Retrieve the set of all condition names.
 java.lang.Class getConsequence(java.lang.String name)
          Retrieve a semantic consequence by name.
 java.util.Set getConsequenceNames()
          Retrieve the set of all consequence names.
 java.lang.Class getExtractor(java.lang.String name)
          Retrieve a semantic extractor by name.
 java.util.Set getExtractorNames()
          Retrieve the set of all object type names.
 java.lang.Class getObjectType(java.lang.String name)
          Retrieve a semantic object type by name.
 java.util.Set getObjectTypeNames()
          Retrieve the set of all object type names.
 java.lang.String getUri()
          Retrieve the URI that identifies this semantic module.
 

Method Detail

getUri

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

getObjectType

public java.lang.Class getObjectType(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.

getObjectTypeNames

public java.util.Set getObjectTypeNames()
Retrieve the set of all object type names.
Returns:
The set of names.

getCondition

public java.lang.Class getCondition(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.

getConditionNames

public java.util.Set getConditionNames()
Retrieve the set of all condition names.
Returns:
The set of names.

getExtractor

public java.lang.Class getExtractor(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.

getExtractorNames

public java.util.Set getExtractorNames()
Retrieve the set of all object type names.
Returns:
The set of names.

getConsequence

public java.lang.Class getConsequence(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.

getConsequenceNames

public java.util.Set getConsequenceNames()
Retrieve the set of all consequence names.
Returns:
The set of names.


Copyright © 2001-2002 The Werken Company. All Rights Reserved.