public class FactFieldAdapter extends Object implements FactField
| Constructor and Description |
|---|
FactFieldAdapter(org.kie.api.definition.type.FactField delegate) |
| Modifier and Type | Method and Description |
|---|---|
static List<FactField> |
adaptFactFields(Collection<org.kie.api.definition.type.FactField> factFields) |
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
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) |
public FactFieldAdapter(org.kie.api.definition.type.FactField delegate)
public Class<?> getType()
FactFieldpublic String getName()
FactFieldpublic boolean isKey()
FactFieldpublic void set(Object bean, Object value)
FactFieldpublic Object get(Object bean)
FactFieldpublic int getIndex()
FactFieldpublic List<Annotation> getFieldAnnotations()
FactFieldgetFieldAnnotations in interface FactFieldpublic Map<String,Object> getMetaData()
FactFieldgetMetaData in interface FactFieldpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic static List<FactField> adaptFactFields(Collection<org.kie.api.definition.type.FactField> factFields)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.