|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.facttemplates.FactTemplateImpl
public class FactTemplateImpl
| Constructor Summary | |
|---|---|
FactTemplateImpl(Package pkg,
String name,
FieldTemplate[] fields)
|
|
| Method Summary | |
|---|---|
Fact |
createFact(long id)
Method takes a list of Slots and creates a deffact from it. |
boolean |
equals(Object object)
|
FieldTemplate[] |
getAllFieldTemplates()
Return all the slots |
FieldTemplate |
getFieldTemplate(int index)
get the Slot at the given pattern id |
FieldTemplate |
getFieldTemplate(String name)
A convienance method for finding the slot matching the String name. |
int |
getFieldTemplateIndex(String name)
Look up the pattern index of the slot |
String |
getName()
the template name is an alias for an object |
int |
getNumberOfFields()
Return the number of slots in the deftemplate |
Package |
getPackage()
|
int |
hashCode()
|
String |
toString()
Method will return a string format with the int type code for the slot type |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FactTemplateImpl(Package pkg, String name, FieldTemplate[] fields)
| Method Detail |
|---|
public Package getPackage()
getPackage in interface FactTemplatepublic String getName()
getName in interface FactTemplatename -
public int getNumberOfFields()
getNumberOfFields in interface FactTemplatepublic FieldTemplate[] getAllFieldTemplates()
getAllFieldTemplates in interface FactTemplatepublic FieldTemplate getFieldTemplate(String name)
getFieldTemplate in interface FactTemplatename -
public FieldTemplate getFieldTemplate(int index)
getFieldTemplate in interface FactTemplateid -
public int getFieldTemplateIndex(String name)
getFieldTemplateIndex in interface FactTemplatename -
public Fact createFact(long id)
createFact in interface FactTemplatedata - id -
public String toString()
public int hashCode()
public boolean equals(Object object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||