|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FactTemplate
public String getName()
getName
in interface FactTemplate
name
-
public int getNumberOfFields()
getNumberOfFields
in interface FactTemplate
public FieldTemplate[] getAllFieldTemplates()
getAllFieldTemplates
in interface FactTemplate
public FieldTemplate getFieldTemplate(String name)
getFieldTemplate
in interface FactTemplate
name
-
public FieldTemplate getFieldTemplate(int index)
getFieldTemplate
in interface FactTemplate
id
-
public int getFieldTemplateIndex(String name)
getFieldTemplateIndex
in interface FactTemplate
name
-
public Fact createFact(long id)
createFact
in interface FactTemplate
data
- 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 |