Package org.apache.commons.jxpath
Class JXPathBasicBeanInfo
java.lang.Object
org.apache.commons.jxpath.JXPathBasicBeanInfo
- All Implemented Interfaces:
Serializable,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.
- Version:
- $Revision: 668329 $ $Date: 2008-06-16 16:59:48 -0500 (Mon, 16 Jun 2008) $
- Author:
- Dmitri Plotnikov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJXPathBasicBeanInfo(Class clazz) Create a new JXPathBasicBeanInfo.JXPathBasicBeanInfo(Class clazz, boolean atomic) Create a new JXPathBasicBeanInfo.JXPathBasicBeanInfo(Class clazz, Class dynamicPropertyHandlerClass) Create a new JXPathBasicBeanInfo. -
Method Summary
Modifier and TypeMethodDescriptionFor a dynamic class, returns the corresponding DynamicPropertyHandler class.getPropertyDescriptor(String propertyName) Returns a PropertyDescriptor for the specified name or null if there is no such property.Returns a list of property descriptors for the beans described by this bean info object.booleanisAtomic()Returns true if objects of this class are treated as atomic objects which have no properties of their own.booleanReturn true if the corresponding objects have dynamic properties.toString()
-
Constructor Details
-
JXPathBasicBeanInfo
Create a new JXPathBasicBeanInfo.- Parameters:
clazz- bean class
-
JXPathBasicBeanInfo
Create a new JXPathBasicBeanInfo.- Parameters:
clazz- bean classatomic- whether objects of this class are treated as atomic objects which have no properties of their own.
-
JXPathBasicBeanInfo
Create a new JXPathBasicBeanInfo.- Parameters:
clazz- bean classdynamicPropertyHandlerClass- dynamic property handler class
-
-
Method Details
-
isAtomic
Returns true if objects of this class are treated as atomic objects which have no properties of their own.- Specified by:
isAtomicin interfaceJXPathBeanInfo- Returns:
- boolean
-
isDynamic
Return true if the corresponding objects have dynamic properties.- Specified by:
isDynamicin interfaceJXPathBeanInfo- Returns:
- boolean
-
getPropertyDescriptors
Description copied from interface:JXPathBeanInfoReturns a list of property descriptors for the beans described by this bean info object. Returns null for atomic beans.- Specified by:
getPropertyDescriptorsin interfaceJXPathBeanInfo- Returns:
- PropertyDescriptor[]
-
getPropertyDescriptor
Description copied from interface:JXPathBeanInfoReturns a PropertyDescriptor for the specified name or null if there is no such property.- Specified by:
getPropertyDescriptorin interfaceJXPathBeanInfo- Parameters:
propertyName- property name- Returns:
- PropertyDescriptor
-
getDynamicPropertyHandlerClass
For a dynamic class, returns the corresponding DynamicPropertyHandler class.- Specified by:
getDynamicPropertyHandlerClassin interfaceJXPathBeanInfo- Returns:
- Class
-
toString
-