|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use BeanException | |
| org.jbeans | |
| Uses of BeanException in org.jbeans |
| Subclasses of BeanException in org.jbeans | |
class |
TypeConversionException
This is the basic exception that gets thrown from the TypeConverter conversion methods. |
| Methods in org.jbeans that throw BeanException | |
protected abstract void |
BaseBeanProperty.initialize()
Sub-classes should put all the initialization logic in this method NOT in constructors. |
Object |
BaseBeanProperty.instantiate()
Creates an instance of the class that this BeanProperty's property is contained in. |
abstract Object |
BaseBeanProperty.getPropertyValue(Object bean)
Gets the the property value. |
abstract void |
BaseBeanProperty.setPropertyValue(Object bean,
Object value,
boolean convert)
Sets the the property value. |
void |
BaseBeanProperty.setPropertyValue(Object bean,
Object value)
Sets the value of the bean property to the given value. |
protected void |
BaseBeanProperty.firePropertyEvent(int type,
Object oldValue,
Object newValue,
Object bean,
int index)
Fires off a property event using the type constants of this class and the parameters given. |
protected void |
BeanProperty.initialize()
Initializes the bean property by finding the read and write methods and setting up the propertyType for this BeanProperty. |
Object |
BeanProperty.getPropertyValue(Object bean)
Returns the value of the Java bean property for the given bean instance. |
void |
BeanProperty.setPropertyValue(Object bean,
Object value,
boolean convert)
Sets the value of the Java bean property to the given value |
void |
JavaBean.addProperty(String propertyName)
Adds the given property to this JavaBean object. |
BeanProperty |
JavaBean.getBeanProperty(String propertyName)
Returns the bean property described by the propertyName String parameter. |
IndexedBeanProperty |
JavaBean.getIndexedBeanProperty(String propertyName)
Returns the indexed bean property described by the propertyName String parameter. |
boolean |
JavaBean.isBeanPropertyIndexed(String propertyName)
Returns whether or not the property described by the propertyName String parameter is an indexed bean property or not. |
void |
JavaBean.checkBeanProperty(String propertyName,
Class type)
Checks if the given bean property is a valid bean property for this JavaBean or a child JavaBean. |
JavaBean |
JavaBean.getChildJavaBean(String propertyName)
Returns the child JavaBean described by the propertyName String parameter. |
Object |
JavaBean.instantiate()
Returns a new instance of the Java bean class that this JavaBean instance was cosntructed for. |
Object |
JavaBean.getPropertyValue(String propertyName,
Object bean)
Retrieves the local or nested bean property using the property name, the bean object (which will be used to retrieve and/or store child objects). |
Object |
JavaBean.getPropertyValue(String propertyName,
Object bean,
int[] indices)
Retrieves the local or nested bean property using the property name, the bean object (which will be used to retrieve and/or store child objects) and the list of indices which will be used for any indexed properties. |
Object |
JavaBean.getPropertyValue(String propertyName,
Object bean,
List indices)
Retrieves the local or nested bean property using the property name, the bean object (which will be used to retrieve and/or store child objects) and the list of indices which will be used for any indexed properties. |
void |
JavaBean.setPropertyValue(String propertyName,
Object bean,
Object value)
Sets the local or nested property to the given value on the given bean instance. |
void |
JavaBean.setPropertyValue(String propertyName,
Object bean,
Object value,
boolean convert)
Sets the local or nested property using the property name, the bean object (which will be used to retrieve and/or store the child objects if this is a nested property), the value with which to set the property, the convert flag to determine whether or not to convert the value to the appropriate type before setting. |
void |
JavaBean.setPropertyValue(String propertyName,
Object bean,
int[] indices,
Object value,
boolean convert)
Sets the local or nested property using the property name, the bean object (which will be used to retrieve and/or store the child objects if this is a nested property), the array of indices for any indexed properties, the value with which to set the property, the convert flag to determine whether or not to convert the value to the appropriate type before setting. |
void |
JavaBean.setPropertyValue(String propertyName,
Object bean,
List indices,
Object value,
boolean convert)
Sets the local or nested property using the property name, the bean object (which will be used to retrieve and/or store the child objects if this is a nested property), the list of indices for any indexed properties, the value with which to set the property, the convert flag to determine whether or not to convert the value to the appropriate type before setting. |
protected void |
DynamicNestedBeanProperty.initialize()
Initializes all the members of this class by parsing out the propertyName String and creating the necessary BeanProperty class and everything else that might be needed. |
Object |
DynamicNestedBeanProperty.getPropertyValue(Object bean)
Returns the value of the local or nested property described by this instance. |
Object |
DynamicNestedBeanProperty.getPropertyValue(Object bean,
List indices)
Returns the value of the local or nested property described by this instance. |
Object |
DynamicNestedBeanProperty.getPropertyValue(Object bean,
int[] indices)
Returns the value of the local or nested property described by this instance. |
void |
DynamicNestedBeanProperty.setPropertyValue(Object bean,
Object value,
boolean convert)
Sets the local or nested property value described by this instance. |
void |
DynamicNestedBeanProperty.setPropertyValue(Object bean,
List indices,
Object value,
boolean convert)
Sets the local or nested property value described by this instance. |
void |
DynamicNestedBeanProperty.setPropertyValue(Object bean,
int[] indices,
Object value,
boolean convert)
Sets the local or nested property value described by this instance. |
protected void |
NestedBeanProperty.initialize()
Initializes all the members of this class by parsing out the propertyName String and creating the necessary BeanProperty class and everything else that might be needed |
Object |
NestedBeanProperty.getPropertyValue(Object bean)
Returns the value of the local or nested property described by this instance. |
void |
NestedBeanProperty.setPropertyValue(Object bean,
Object value,
boolean convert)
Sets the local or nested property value described by this instance. |
protected void |
IndexedBeanProperty.initialize()
Initializes the bean property by finding the read and write methods and setting up the propertyType for this BeanProperty. |
Object |
IndexedBeanProperty.getPropertyValue(Object bean,
int index)
Returns the value of the indexed JavaBean property at the given index |
Object |
IndexedBeanProperty.getPropertyValue(Object bean)
This method is not implemented and will throw an exception |
void |
IndexedBeanProperty.setPropertyValue(Object bean,
int index,
Object value,
boolean convert)
Sets the value of the indexed JavaBean property at the given index with the given value |
void |
IndexedBeanProperty.setPropertyValue(Object bean,
int index,
Object value)
Sets the value of the indexed JavaBean property at the given index with the given value. |
void |
IndexedBeanProperty.setPropertyValue(Object bean,
Object value,
boolean convert)
This method is not implemented and will throw an exception |
static Method |
JavaBeanTools.findReadMethod(String property,
Class beanClass)
Finds either a get method or is method in the class given for the given property name. |
static Method |
JavaBeanTools.findIndexedReadMethod(String property,
Class beanClass)
Finds a get method in the class given for the given property. |
static Method |
JavaBeanTools.findWriteMethod(String property,
Class beanClass,
Class type)
Finds a set method for the given property and parameter type |
static Method |
JavaBeanTools.findIndexedWriteMethod(String property,
Class beanClass,
Class type)
Finds a set indexed method for the given property and parameter type |
static Object |
JavaBeanTools.callGetter(String property,
Object bean)
Another convience method for calling a getter on a java bean. |
static Object |
JavaBeanTools.callGetter(BeanProperty prop,
Object bean)
Another convience method that calls a java bean getter and returns the value. |
static Object |
JavaBeanTools.callIndexedGetter(BeanProperty prop,
Object bean,
int index)
Another convience method that calls an indexed java bean getter and returns the value. |
static void |
JavaBeanTools.callSetter(String property,
Object bean,
Object param)
Another convience method for calling a setter on a java bean. |
static void |
JavaBeanTools.callSetter(BeanProperty prop,
Object bean,
Object param)
Another convience method for calling a setter on a java bean. |
static void |
JavaBeanTools.callIndexedSetter(BeanProperty prop,
Object bean,
int index,
Object param)
Another convience method for calling a setter on a java bean. |
static JavaBeanTools.IndexHelper |
JavaBeanTools.findIndex(String propertyName)
Given the property name string, the index and property name are extracted and returned in a new IndexHelper. |
static JavaBeanTools.IndexHelper |
JavaBeanTools.findIndex(String propertyName,
JavaBeanTools.IndexHelper indexHelper)
Given the property name string, the index and property name are extracted and returned in the given IndexHelper. |
static JavaBeanTools.IndexHelper |
JavaBeanTools.removeIndices(String propertyName)
This method takes the given property string and removes all the indices from it and stores them in an List. |
| Constructors in org.jbeans that throw BeanException | |
BaseBeanProperty(String propertyName,
Class beanClass)
Constuctor with initial properties. |
|
BaseBeanProperty(String propertyName,
String beanClass)
Constuctor with initial properties. |
|
BeanProperty(String propertyName,
Class beanClass)
Constructs a new bean property using the property name and the bean class given. |
|
BeanProperty(String propertyName,
String beanClass)
Constructs a new bean property using the property name and the fully qualified name of the bean class given. |
|
JavaBean(String beanClass)
Creates new JavaBean using the given fully qualified name of the bean class object and with strict set to false. |
|
JavaBean(String beanClass,
boolean strict)
Creates new JavaBean using the given fully qualified name of the bean class object and the given strict value. |
|
DynamicNestedBeanProperty(String propertyName,
Class beanClass)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
DynamicNestedBeanProperty(String propertyName,
String beanClass)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
DynamicNestedBeanProperty(String propertyName,
Class beanClass,
boolean strict)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
DynamicNestedBeanProperty(String propertyName,
String beanClass,
boolean strict)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
NestedBeanProperty(String propertyName,
Class beanClass)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
NestedBeanProperty(String propertyName,
String beanClass)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
NestedBeanProperty(String propertyName,
Class beanClass,
boolean strict)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
NestedBeanProperty(String propertyName,
String beanClass,
boolean strict)
Constructs a new NestedBeanProperty that can be used to describe nested or local properties, depending on the value of the property string (see the class comment for more information). |
|
SynchronizedNestedBeanProperty()
Constructs a new instance of the thread safe NestedBeanProperty |
|
SynchronizedNestedBeanProperty(String propertyName,
Class beanClass)
Constructs a new instance of the thread safe NestedBeanProperty |
|
SynchronizedNestedBeanProperty(String propertyName,
Class beanClass,
boolean strict)
Constructs a new instance of the thread safe NestedBeanProperty |
|
SynchronizedBeanProperty()
Constructs a new instance of the thread safe BeanProperty |
|
SynchronizedBeanProperty(String propertyName,
Class beanClass)
Constructs a new instance of the thread safe BeanProperty |
|
SynchronizedDynamicNestedBeanProperty()
Constructs a new instance of the thread safe NestedBeanProperty |
|
SynchronizedDynamicNestedBeanProperty(String propertyName,
Class beanClass)
Constructs a new instance of the thread safe NestedBeanProperty |
|
SynchronizedDynamicNestedBeanProperty(String propertyName,
Class beanClass,
boolean strict)
Constructs a new instance of the thread safe NestedBeanProperty |
|
IndexedBeanProperty(String propertyName,
Class beanClass)
Constructs a new indexed bean property using the property name and bean class given. |
|
IndexedBeanProperty(String propertyName,
String beanClass)
Constructs a new indexed bean property using the property name and fully qualified name of the bean class given. |
|
SynchronizedIndexedBeanProperty()
Constructs a new instance of the thread safe IndexedBeanProperty |
|
SynchronizedIndexedBeanProperty(String propertyName,
Class beanClass)
Constructs a new instance of the thread safe IndexedBeanProperty |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||