public class FactTypeAdapter extends Object implements FactType
| Constructor and Description |
|---|
FactTypeAdapter(org.kie.api.definition.type.FactType delegate) |
| Modifier and Type | Method and Description |
|---|---|
static List<FactType> |
adaptFactTypes(Collection<org.kie.api.definition.type.FactType> factTypes) |
boolean |
equals(Object obj) |
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
|
int |
hashCode() |
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) |
public FactTypeAdapter(org.kie.api.definition.type.FactType delegate)
public String getName()
FactTypepublic String getSimpleName()
FactTypegetSimpleName in interface FactTypepublic String getPackageName()
FactTypegetPackageName in interface FactTypepublic String getSuperClass()
FactTypegetSuperClass in interface FactTypepublic List<FactField> getFields()
FactTypepublic FactField getField(String name)
FactTypepublic Class<?> getFactClass()
FactTypegetFactClass in interface FactTypepublic Object newInstance() throws InstantiationException, IllegalAccessException
FactTypenewInstance in interface FactTypeInstantiationExceptionIllegalAccessExceptionpublic void set(Object bean, String field, Object value)
FactTypepublic Object get(Object bean, String field)
FactTypepublic Map<String,Object> getAsMap(Object bean)
FactTypepublic void setFromMap(Object bean, Map<String,Object> values)
FactTypesetFromMap 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()
FactTypegetClassAnnotations in interface FactTypepublic Map<String,Object> getMetaData()
FactTypegetMetaData in interface FactTypepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic static List<FactType> adaptFactTypes(Collection<org.kie.api.definition.type.FactType> factTypes)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.