|
Knowledge API Legacy5 Adapter 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.impl.adapters.FactTypeAdapter
public class FactTypeAdapter
| Constructor Summary | |
|---|---|
FactTypeAdapter(org.kie.api.definition.type.FactType delegate)
|
|
| Method Summary | |
|---|---|
static List<FactType> |
adaptFactTypes(Collection<org.kie.api.definition.type.FactType> factTypes)
|
Object |
get(Object bean,
String field)
Gets the value of the specified field on the dynamic fact. |
Map<String,Object> |
getAsMap(Object bean)
Get a map of the fields and their values for the bean. |
List<Annotation> |
getClassAnnotations()
Returns the list of class-level annotations used in this class definition |
Class<?> |
getFactClass()
Returns the Class |
FactField |
getField(String name)
Returns the FactField identified by the given name. |
List<FactField> |
getFields()
Returns the list of FactField in this FactType |
Map<String,Object> |
getMetaData()
Returns the annotations of this class definition as key-value pairs. |
String |
getName()
Returns the fully qualified name of the FactType. |
String |
getPackageName()
Returns the package this FactType is defined in. |
String |
getSimpleName()
Returns the unqualified name of the FactType. |
String |
getSuperClass()
Returns the name of the FactType's super type |
Object |
newInstance()
Create a new fact based on the declared fact type. |
void |
readExternal(ObjectInput in)
|
void |
set(Object bean,
String field,
Object value)
Sets the value of the field on a fact. |
void |
setFromMap(Object bean,
Map<String,Object> values)
Sets the values of the bean from a map. |
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 FactTypeAdapter(org.kie.api.definition.type.FactType delegate)
| Method Detail |
|---|
public String getName()
FactType
getName in interface FactTypepublic String getSimpleName()
FactType
getSimpleName in interface FactTypepublic String getPackageName()
FactType
getPackageName in interface FactTypepublic String getSuperClass()
FactType
getSuperClass in interface FactTypepublic List<FactField> getFields()
FactType
getFields in interface FactTypepublic FactField getField(String name)
FactType
getField in interface FactTypename - the name of the FactField
public Class<?> getFactClass()
FactType
getFactClass in interface FactType
public Object newInstance()
throws InstantiationException,
IllegalAccessException
FactType
newInstance in interface FactTypeInstantiationException
IllegalAccessException
public void set(Object bean,
String field,
Object value)
FactType
set in interface FactTypebean - the object on which the field will be set.field - the name of the field to set.value - the value to be set on the field.
public Object get(Object bean,
String field)
FactType
get in interface FactTypebean - the fact to read the field value from.field - the name of the field to read.
public Map<String,Object> getAsMap(Object bean)
FactType
getAsMap in interface FactTypebean - the bean to read the fields from.
public void setFromMap(Object bean,
Map<String,Object> values)
FactType
setFromMap in interface FactTypebean - the fact to set the values of the fields onvalues - a map of field names and values to setpublic List<Annotation> getClassAnnotations()
FactType
getClassAnnotations in interface FactTypepublic Map<String,Object> getMetaData()
FactType
getMetaData in interface FactType
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<FactType> adaptFactTypes(Collection<org.kie.api.definition.type.FactType> factTypes)
|
Knowledge API Legacy5 Adapter 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||