org.apache.commons.jxpath
Class JXPathBasicBeanInfo

java.lang.Object
  extended byorg.apache.commons.jxpath.JXPathBasicBeanInfo
All Implemented Interfaces:
JXPathBeanInfo

public class JXPathBasicBeanInfo
extends java.lang.Object
implements JXPathBeanInfo

An implementation of JXPathBeanInfo based on JavaBeans' BeanInfo. Properties advertised by JXPathBasicBeanInfo are the same as those advertised by BeanInfo for the corresponding class. See java.beans.BeanInfo, java.beans.Introspector

Version:
$Revision: 1.9 $ $Date: 2004/05/08 15:03:36 $
Author:
Dmitri Plotnikov

Field Summary
private  boolean atomic
           
private  java.lang.Class clazz
           
private  java.lang.Class dynamicPropertyHandlerClass
           
private  java.beans.PropertyDescriptor[] propertyDescriptors
           
private  java.lang.String[] propertyNames
           
 
Constructor Summary
JXPathBasicBeanInfo(java.lang.Class clazz)
           
JXPathBasicBeanInfo(java.lang.Class clazz, boolean atomic)
           
JXPathBasicBeanInfo(java.lang.Class clazz, java.lang.Class dynamicPropertyHandlerClass)
           
 
Method Summary
 java.lang.Class getDynamicPropertyHandlerClass()
          For a dynamic class, returns the corresponding DynamicPropertyHandler class.
 java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
          Returns a PropertyDescriptor for the specified name or null if there is no such property.
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Returns a list of property descriptors for the beans described by this bean info object.
 boolean isAtomic()
          Returns true if objects of this class are treated as atomic objects which have no properties of their own.
 boolean isDynamic()
          Return true if the corresponding objects have dynamic properties.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

atomic

private boolean atomic

clazz

private java.lang.Class clazz

propertyDescriptors

private java.beans.PropertyDescriptor[] propertyDescriptors

propertyNames

private java.lang.String[] propertyNames

dynamicPropertyHandlerClass

private java.lang.Class dynamicPropertyHandlerClass
Constructor Detail

JXPathBasicBeanInfo

public JXPathBasicBeanInfo(java.lang.Class clazz)

JXPathBasicBeanInfo

public JXPathBasicBeanInfo(java.lang.Class clazz,
                           boolean atomic)

JXPathBasicBeanInfo

public JXPathBasicBeanInfo(java.lang.Class clazz,
                           java.lang.Class dynamicPropertyHandlerClass)
Method Detail

isAtomic

public boolean isAtomic()
Returns true if objects of this class are treated as atomic objects which have no properties of their own.

Specified by:
isAtomic in interface JXPathBeanInfo

isDynamic

public boolean isDynamic()
Return true if the corresponding objects have dynamic properties.

Specified by:
isDynamic in interface JXPathBeanInfo

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Description copied from interface: JXPathBeanInfo
Returns a list of property descriptors for the beans described by this bean info object. Returns null for atomic beans.

Specified by:
getPropertyDescriptors in interface JXPathBeanInfo

getPropertyDescriptor

public java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
Description copied from interface: JXPathBeanInfo
Returns a PropertyDescriptor for the specified name or null if there is no such property.

Specified by:
getPropertyDescriptor in interface JXPathBeanInfo

getDynamicPropertyHandlerClass

public java.lang.Class getDynamicPropertyHandlerClass()
For a dynamic class, returns the corresponding DynamicPropertyHandler class.

Specified by:
getDynamicPropertyHandlerClass in interface JXPathBeanInfo

toString

public java.lang.String toString()