|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xulux.dataprovider.bean.BeanField
public class BeanField
This class contains all the symantics for working on a bean.
Constructor Summary | |
---|---|
BeanField()
Constructor for BeanField. |
|
BeanField(java.lang.reflect.Method method)
Contructor that takes a method |
Method Summary | |
---|---|
void |
addParameter(BeanParameter parameter)
Add a single parameter to the parameter list |
boolean |
equals(java.lang.Object object)
Checks if we are talking about the same field.. |
java.lang.String |
getAlias()
Returns the alias. |
protected java.lang.Object[] |
getArgs()
|
protected java.lang.reflect.Method |
getChangeMethod()
|
org.xulux.api.dataprovider.IMapping |
getMapping()
|
java.lang.reflect.Method |
getMethod()
Returns the method. |
java.lang.String |
getName()
Returns the name. |
java.util.List |
getParameters()
|
java.lang.String |
getRealField()
|
protected java.lang.Object[] |
getSetMethodArgs(java.lang.Object value)
No nullchecking is done in this method, the caller should check if it can correctly call this method. |
java.lang.Class |
getType()
|
java.lang.Object |
getValue(java.lang.Object bean)
Get the value from the specified bean. |
boolean |
hasTempRealField()
|
boolean |
isBaseType()
Returns the baseType. |
boolean |
isReadOnly()
|
void |
removeTempRealField()
Remove the temporaray real field |
void |
setAlias(java.lang.String alias)
Sets the alias. |
void |
setBaseType(boolean baseType)
Sets the baseType. |
void |
setChangeMethod(java.lang.Class clazz,
java.lang.String name)
Convenience method to set the changemethod. |
void |
setChangeMethod(java.lang.reflect.Method method)
|
void |
setMapping(BeanMapping mapping)
Set the mapping for reference |
void |
setMethod(java.lang.reflect.Method method)
Sets the method. |
void |
setParameters(java.util.List parameters)
Sets the parameters of the beanfield. |
void |
setProperty(java.lang.String name,
java.lang.String value)
|
void |
setRealField(java.lang.String realField)
|
void |
setTempRealField(java.lang.String realField)
Set a temporary realfield, which is not dictionary based. |
java.lang.Object |
setValue(java.lang.Object bean,
java.lang.Object value)
Sets a new value in the field Exceptions will be eaten. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanField()
public BeanField(java.lang.reflect.Method method)
method
- - the method to use for reading the valueMethod Detail |
---|
public boolean isReadOnly()
isReadOnly
in interface org.xulux.api.dataprovider.IField
public java.lang.Object setValue(java.lang.Object bean, java.lang.Object value)
setValue
in interface org.xulux.api.dataprovider.IField
bean
- - the bean to set the value onvalue
- - the value to set to the bean
public java.lang.Object getValue(java.lang.Object bean)
getValue
in interface org.xulux.api.dataprovider.IField
bean
- - the bean to get the value from
protected java.lang.Object[] getArgs()
protected java.lang.Object[] getSetMethodArgs(java.lang.Object value)
value
- get the setmethod for the specified value
public java.lang.String getName()
getName
in interface org.xulux.api.dataprovider.IField
public java.lang.reflect.Method getMethod()
public void setMethod(java.lang.reflect.Method method)
method
- The method to setpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- - the object to perform the equals on
public boolean isBaseType()
public void setBaseType(boolean baseType)
baseType
- The baseType to setpublic void setChangeMethod(java.lang.reflect.Method method)
method
- - the change method for this field.public void setChangeMethod(java.lang.Class clazz, java.lang.String name)
clazz
- the class to investigatename
- the name of the change methodpublic java.lang.String getAlias()
getAlias
in interface org.xulux.api.dataprovider.IField
public void setAlias(java.lang.String alias)
alias
- The alias to setpublic void setParameters(java.util.List parameters)
parameters
- the parameters to usepublic java.util.List getParameters()
public void addParameter(BeanParameter parameter)
parameter
- the parameter to addpublic void setRealField(java.lang.String realField)
realField
- the real field to usepublic void setTempRealField(java.lang.String realField)
realField
- the temporary realfieldpublic boolean hasTempRealField()
public void removeTempRealField()
public java.lang.String getRealField()
public java.lang.Class getType()
getType
in interface org.xulux.api.dataprovider.IField
protected java.lang.reflect.Method getChangeMethod()
public org.xulux.api.dataprovider.IMapping getMapping()
getMapping
in interface org.xulux.api.dataprovider.IField
IField.getMapping()
public void setMapping(BeanMapping mapping)
mapping
- the mappingpublic void setProperty(java.lang.String name, java.lang.String value)
setProperty
in interface org.xulux.api.dataprovider.IField
IField.setProperty(java.lang.String, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |