public class FieldDefinition extends Object implements org.kie.api.definition.type.FactField, Comparable<FieldDefinition>
Constructor and Description |
---|
FieldDefinition() |
FieldDefinition(String name,
String type)
Default constructor
|
FieldDefinition(String name,
String type,
boolean key)
Default constructor
|
public FieldDefinition()
public FieldDefinition(String name, String type)
name
- the field's nametype
- the fully qualified fields typepublic void setReadWriteAccessor(ClassFieldAccessor accessor)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public String getName()
getName
in interface org.kie.api.definition.type.FactField
public void setName(String name)
name
- The name to set.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.FactField
public boolean isKey()
isKey
in interface org.kie.api.definition.type.FactField
public 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.FactField
public void set(Object bean, Object value)
set
in interface org.kie.api.definition.type.FactField
public boolean isInherited()
public void setInherited(boolean inherited)
public int getIndex()
getIndex
in interface org.kie.api.definition.type.FactField
public 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.FactField
public Map<String,Object> getMetaData()
getMetaData
in interface org.kie.api.definition.type.FactField
public 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–2018 JBoss by Red Hat. All rights reserved.