Package org.drools.core.facttemplates
Interface FactTemplate
-
- All Superinterfaces:
Externalizable,Serializable
- All Known Implementing Classes:
FactTemplateImpl
public interface FactTemplate extends Externalizable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FactcreateFact()Collection<String>getFieldNames()FieldTemplategetFieldTemplate(String name)Return the slot with the String nameintgetFieldTemplateIndex(String name)Get the pattern index with the given nameStringgetName()The name of the template may be the fully qualified class name, or an alias.intgetNumberOfFields()templates may have 1 or more slots.InternalKnowledgePackagegetPackage()-
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
-
-
-
Method Detail
-
getPackage
InternalKnowledgePackage getPackage()
-
getName
String getName()
The name of the template may be the fully qualified class name, or an alias.- Returns:
-
getNumberOfFields
int getNumberOfFields()
templates may have 1 or more slots. A slot is a named pattern with a specific type of value.- Returns:
-
getFieldNames
Collection<String> getFieldNames()
-
getFieldTemplate
FieldTemplate getFieldTemplate(String name)
Return the slot with the String name- Returns:
-
getFieldTemplateIndex
int getFieldTemplateIndex(String name)
Get the pattern index with the given name- Parameters:
name-- Returns:
-
createFact
Fact createFact()
-
-