|
Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.impl.adapters.FactFieldAdapter
public class FactFieldAdapter
| Constructor Summary | |
|---|---|
FactFieldAdapter(org.kie.api.definition.type.FactField delegate)
|
|
| Method Summary | |
|---|---|
static List<FactField> |
adaptFactFields(Collection<org.kie.api.definition.type.FactField> factFields)
|
Object |
get(Object bean)
Returns the value of this field in the given fact. |
List<Annotation> |
getFieldAnnotations()
Returns the list of field-level annotations used in this field definition |
int |
getIndex()
Returns the index of this field in the field list for the defining fact type. |
Map<String,Object> |
getMetaData()
Returns the annotations of this field definition as key-value pairs. |
String |
getName()
Returns the name of this field. |
Class<?> |
getType()
Returns the type of this field. |
boolean |
isKey()
Returns true if this field is a key field. |
void |
readExternal(ObjectInput in)
|
void |
set(Object bean,
Object value)
Sets the value of this field in the given fact. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactFieldAdapter(org.kie.api.definition.type.FactField delegate)
| Method Detail |
|---|
public Class<?> getType()
FactField
getType in interface FactFieldpublic String getName()
FactField
getName in interface FactFieldpublic boolean isKey()
FactField
isKey in interface FactField
public void set(Object bean,
Object value)
FactField
set in interface FactFieldbean - fact on which to set the field.value - the value to set on the field.public Object get(Object bean)
FactField
get in interface FactFieldbean - the fact from which the field will be read.
public int getIndex()
FactField
getIndex in interface FactFieldpublic List<Annotation> getFieldAnnotations()
FactField
getFieldAnnotations in interface FactFieldpublic Map<String,Object> getMetaData()
FactField
getMetaData in interface FactField
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic static List<FactField> adaptFactFields(Collection<org.kie.api.definition.type.FactField> factFields)
|
Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||