|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.factmodel.FieldDefinition
public class FieldDefinition
Declares a field to be dynamically generated.
Constructor Summary | |
---|---|
FieldDefinition()
|
|
FieldDefinition(String name,
String type)
Default constructor |
|
FieldDefinition(String name,
String type,
boolean key)
Default constructor |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldDefinition()
public FieldDefinition(String name, String type)
name
- the field's nametype
- the fully qualified fields typepublic FieldDefinition(String name, String type, boolean key)
name
- the field's nametype
- the fully qualified fields typeMethod Detail |
---|
public 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.drools.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.drools.definition.type.FactField
public boolean isKey()
isKey
in interface org.drools.definition.type.FactField
public void setKey(boolean key)
key
- The key to set.public String getReadMethod()
public String getWriteMethod()
public boolean equals(Object o)
equals
in class Object
public ClassFieldAccessor getFieldAccessor()
public int hashCode()
hashCode
in class Object
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 instance
public Object get(Object bean)
get
in interface org.drools.definition.type.FactField
public void set(Object bean, Object value)
set
in interface org.drools.definition.type.FactField
public boolean isInherited()
public void setInherited(boolean inherited)
public int getIndex()
getIndex
in interface org.drools.definition.type.FactField
public void setIndex(int index)
public String getInitExpr()
public void setInitExpr(String initExpr)
public int compareTo(FieldDefinition other)
compareTo
in interface Comparable<FieldDefinition>
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |