|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.facttemplates.FactImpl
public class FactImpl
| Constructor Summary | |
|---|---|
FactImpl()
|
|
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()
|
void |
readExternal(ObjectInput in)
|
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)
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactImpl()
public FactImpl(FactTemplate template,
Object[] values,
long id)
instance - values -
public FactImpl(FactTemplate template,
long id)
| 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 Object getFieldValue(int index)
getFieldValue in interface Factid -
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 Factpublic long getFactId()
getFactId in interface Factprotected void resetId(Fact fact)
fact - public FactTemplate getFactTemplate()
getFactTemplate in interface Factpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||