public class FieldDefinition extends Object implements org.kie.api.definition.type.FactField, Comparable<FieldDefinition>
| Constructor and Description |
|---|
FieldDefinition() |
FieldDefinition(String name,
GenericTypeDefinition type) |
FieldDefinition(String name,
GenericTypeDefinition type,
boolean key) |
FieldDefinition(String name,
String type) |
FieldDefinition(String name,
String type,
boolean key) |
public FieldDefinition()
public FieldDefinition(String name, GenericTypeDefinition type)
public FieldDefinition(String name, GenericTypeDefinition type, boolean key)
public void setReadWriteAccessor(ClassFieldAccessor accessor)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String getName()
getName in interface org.kie.api.definition.type.FactFieldpublic void setName(String name)
name - The name to set.public GenericTypeDefinition getGenericType()
public String getTypeName()
public void setTypeName(String type)
type - The fully qualified type to set.public Class<?> getType()
getType in interface org.kie.api.definition.type.FactFieldpublic boolean isKey()
isKey in interface org.kie.api.definition.type.FactFieldpublic void setKey(boolean key)
key - The key to set.public String getReadMethod()
public String getWriteMethod()
public ClassFieldAccessor getFieldAccessor()
public void setValue(Object bean, Object value)
bean - the target bean instance where the attribute shall be setvalue - the value to set the attribute topublic Object getValue(Object bean)
bean - the target bean instancepublic Object get(Object bean)
get in interface org.kie.api.definition.type.FactFieldpublic void set(Object bean, Object value)
set in interface org.kie.api.definition.type.FactFieldpublic boolean isInherited()
public void setInherited(boolean inherited)
public int getIndex()
getIndex in interface org.kie.api.definition.type.FactFieldpublic void setIndex(int index)
public int getDeclIndex()
public void setDeclIndex(int declIndex)
public int getPriority()
public void setPriority(int priority)
public String getInitExpr()
public void setInitExpr(String initExpr)
public int compareTo(FieldDefinition other)
compareTo in interface Comparable<FieldDefinition>public void addAnnotation(AnnotationDefinition annotationDefinition)
public List<AnnotationDefinition> getAnnotations()
public List<org.kie.api.definition.type.Annotation> getFieldAnnotations()
getFieldAnnotations in interface org.kie.api.definition.type.FactFieldpublic Map<String,Object> getMetaData()
getMetaData in interface org.kie.api.definition.type.FactFieldpublic String getDefaultValueAsString()
public Boolean getDefaultValueAsBoolean()
public Byte getDefaultValueAsByte()
public Character getDefaultValueAsChar()
public Double getDefaultValueAsDouble()
public Float getDefaultValueAsFloat()
public Integer getDefaultValueAsInt()
public Long getDefaultValueAsLong()
public Short getDefaultValueAsShort()
public boolean getDefaultValueAs_boolean()
public byte getDefaultValueAs_byte()
public char getDefaultValueAs_char()
public double getDefaultValueAs_double()
public float getDefaultValueAs_float()
public int getDefaultValueAs_int()
public long getDefaultValueAs_long()
public short getDefaultValueAs_short()
public String resolveAlias()
public String getAlias()
public boolean hasAlias()
public boolean isRecursive()
public void setRecursive(boolean recursive)
public boolean hasOverride()
public String getOverriding()
public void setOverriding(String overriding)
public String getGetterName()
public void setGetterName(String getterName)
public String getSetterName()
public void setSetterName(String setterName)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.