|
Drools :: Core 6.2.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.facttemplates.FactTemplateImpl
public class FactTemplateImpl
| Constructor Summary | |
|---|---|
FactTemplateImpl()
|
|
FactTemplateImpl(InternalKnowledgePackage 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 |
InternalKnowledgePackage |
getPackage()
|
int |
hashCode()
|
void |
readExternal(ObjectInput in)
|
String |
toString()
Method will return a string format with the int type code for the slot type |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FactTemplateImpl()
public FactTemplateImpl(InternalKnowledgePackage pkg,
String name,
FieldTemplate[] fields)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic InternalKnowledgePackage getPackage()
getPackage in interface FactTemplatepublic String getName()
getName in interface FactTemplatepublic 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 FactTemplatepublic int getFieldTemplateIndex(String name)
getFieldTemplateIndex in interface FactTemplatepublic Fact createFact(long id)
createFact in interface FactTemplatepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Object
|
Drools :: Core 6.2.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||