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()
FactField
public String getName()
FactField
public boolean isKey()
FactField
public void set(Object bean, Object value)
FactField
public Object get(Object bean)
FactField
public int getIndex()
FactField
public List<Annotation> getFieldAnnotations()
FactField
getFieldAnnotations
in interface FactField
public Map<String,Object> getMetaData()
FactField
getMetaData
in interface FactField
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public static List<FactField> adaptFactFields(Collection<org.kie.api.definition.type.FactField> factFields)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.