org.apache.commons.jxpath

Class JXPathBasicBeanInfo

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

Constructor Summary

JXPathBasicBeanInfo(Class clazz)
JXPathBasicBeanInfo(Class clazz, Class dynamicPropertyHandlerClass)
JXPathBasicBeanInfo(Class clazz, boolean atomic)

Method Summary

Class
getDynamicPropertyHandlerClass()
For a dynamic class, returns the corresponding DynamicPropertyHandler class.
PropertyDescriptor
getPropertyDescriptor(String propertyName)
PropertyDescriptor[]
getPropertyDescriptors()
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.
String
toString()

Constructor Details

JXPathBasicBeanInfo

public JXPathBasicBeanInfo(Class clazz)

JXPathBasicBeanInfo

public JXPathBasicBeanInfo(Class clazz,
                           Class dynamicPropertyHandlerClass)

JXPathBasicBeanInfo

public JXPathBasicBeanInfo(Class clazz,
                           boolean atomic)

Method Details

getDynamicPropertyHandlerClass

public Class getDynamicPropertyHandlerClass()
For a dynamic class, returns the corresponding DynamicPropertyHandler class.
Specified by:
getDynamicPropertyHandlerClass in interface JXPathBeanInfo

getPropertyDescriptor

public PropertyDescriptor getPropertyDescriptor(String propertyName)
Specified by:
getPropertyDescriptor in interface JXPathBeanInfo

getPropertyDescriptors

public PropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface JXPathBeanInfo

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

toString

public String toString()