public abstract class AccessLevelBeanInfo
extends java.beans.SimpleBeanInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
AccessLevelBeanInfo.AccessLevel
Type-safe enumeration class used to specify access levels
for bean properties.
|
static class |
AccessLevelBeanInfo.PersistenceLevel
this level indicates what persistence is allowed.
|
protected static class |
AccessLevelBeanInfo.Property
AccessLevelBeanInfo.Property is a helper class for subclasses of
AccessLevelBeanInfo to specify a list of properties in a way that
is independant of the underlying Bean/PropertyDescriptor implementation.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AccessLevelBeanInfo(AccessLevelBeanInfo.Property[] properties,
java.lang.Class beanClass)
Creates and instance of AccessLevelBeanInfo.
|
| Modifier and Type | Method and Description |
|---|---|
static AccessLevelBeanInfo.AccessLevel |
getAccessLevel()
Returns the access level for AccessLevelBeanInfo objects.
|
java.beans.BeanDescriptor |
getBeanDescriptor()
get the descriptor for the class.
|
static java.lang.Object |
getLock() |
AccessLevelBeanInfo.Property |
getProperty(java.beans.PropertyDescriptor pd)
get the Property for the PropertyDescriptor.
|
java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
get the property descriptors for the object.
|
java.beans.PropertyDescriptor[] |
getPropertyDescriptors(AccessLevelBeanInfo.PersistenceLevel persistenceLevel)
convenient method that only returns the descriptors for the specified persistence level.
|
static void |
setAccessLevel(AccessLevelBeanInfo.AccessLevel level)
Sets the access level for AccessLevelBeanInfo objects.
|
protected AccessLevelBeanInfo(AccessLevelBeanInfo.Property[] properties, java.lang.Class beanClass)
properties array must be of the type
Object[] with the following format:
{ propertyName, accessorMethod, mutatorMethod, accessLevel}
where the elements have the following meaning.
propertyName - A String naming the property being specified.accessorMethod - A String specifying the name of the read method
for this property.mutatorMethod - A String specifying the name of the write method
for this propertyaccessLevel - A org.das2.beans.AccessLevelBeanInfo.AccessLevel instance specifying
the access level for this property.public static AccessLevelBeanInfo.AccessLevel getAccessLevel()
public static void setAccessLevel(AccessLevelBeanInfo.AccessLevel level)
public static java.lang.Object getLock()
public java.beans.PropertyDescriptor[] getPropertyDescriptors(AccessLevelBeanInfo.PersistenceLevel persistenceLevel)
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface java.beans.BeanInfogetPropertyDescriptors in class java.beans.SimpleBeanInfopublic AccessLevelBeanInfo.Property getProperty(java.beans.PropertyDescriptor pd)
pd - public java.beans.BeanDescriptor getBeanDescriptor()
getBeanDescriptor in interface java.beans.BeanInfogetBeanDescriptor in class java.beans.SimpleBeanInfo