|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.facttemplates.FactImpl
public class FactImpl
Constructor Summary | |
---|---|
FactImpl(FactTemplate template,
long id)
|
|
FactImpl(FactTemplate template,
Object[] values,
long id)
this is the default constructor |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
long |
getFactId()
Return the long factId |
FactTemplate |
getFactTemplate()
Return the deftemplate for the fact |
Object |
getFieldValue(int index)
Method returns the value of the given slot at the id. |
Object |
getFieldValue(String name)
|
int |
hashCode()
|
protected void |
resetId(Fact fact)
this is used to reset the id, in the event an user tries to assert the same fact again, we reset the id to the existing one. |
void |
setFieldValue(int index,
Object value)
|
void |
setFieldValue(String name,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FactImpl(FactTemplate template, Object[] values, long id)
instance
- values
- public FactImpl(FactTemplate template, long id)
Method Detail |
---|
public Object getFieldValue(int index)
getFieldValue
in interface Fact
id
-
public Object getFieldValue(String name)
getFieldValue
in interface Fact
public void setFieldValue(String name, Object value)
setFieldValue
in interface Fact
public void setFieldValue(int index, Object value)
setFieldValue
in interface Fact
public long getFactId()
protected void resetId(Fact fact)
fact
- public FactTemplate getFactTemplate()
getFactTemplate
in interface Fact
public int hashCode()
public boolean equals(Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |