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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJXPathBasicBeanInfo
(Class clazz) Constructs a new JXPathBasicBeanInfo.JXPathBasicBeanInfo
(Class clazz, boolean atomic) Constructs a new JXPathBasicBeanInfo.JXPathBasicBeanInfo
(Class clazz, Class dynamicPropertyHandlerClass) Constructs a new JXPathBasicBeanInfo. -
Method Summary
Modifier and TypeMethodDescriptionGets the DynamicPropertyHandler class for a dynamic class.getPropertyDescriptor
(String propertyName) Gets a PropertyDescriptor for the specified name or null if there is no such property.Gets a list of property descriptors for the beans described by this bean info object.boolean
isAtomic()
Tests whether objects of this class are treated as atomic objects which have no properties of their own.boolean
Return true if the corresponding objects have dynamic properties.toString()
-
Constructor Details
-
JXPathBasicBeanInfo
Constructs a new JXPathBasicBeanInfo.- Parameters:
clazz
- bean class
-
JXPathBasicBeanInfo
Constructs 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
Constructs a new JXPathBasicBeanInfo.- Parameters:
clazz
- bean classdynamicPropertyHandlerClass
- dynamic property handler class
-
-
Method Details
-
getDynamicPropertyHandlerClass
Gets the DynamicPropertyHandler class for a dynamic class.- Specified by:
getDynamicPropertyHandlerClass
in interfaceJXPathBeanInfo
- Returns:
- the DynamicPropertyHandler class for a dynamic class.
-
getPropertyDescriptor
Description copied from interface:JXPathBeanInfo
Gets a PropertyDescriptor for the specified name or null if there is no such property.- Specified by:
getPropertyDescriptor
in interfaceJXPathBeanInfo
- Parameters:
propertyName
- property name- Returns:
- PropertyDescriptor
-
getPropertyDescriptors
Description copied from interface:JXPathBeanInfo
Gets a list of property descriptors for the beans described by this bean info object. Returns null for atomic beans.- Specified by:
getPropertyDescriptors
in interfaceJXPathBeanInfo
- Returns:
- PropertyDescriptor[]
-
isAtomic
Tests whether objects of this class are treated as atomic objects which have no properties of their own.- Specified by:
isAtomic
in interfaceJXPathBeanInfo
- Returns:
- whether objects of this class are treated as atomic objects which have no properties of their own.
-
isDynamic
Return true if the corresponding objects have dynamic properties.- Specified by:
isDynamic
in interfaceJXPathBeanInfo
- Returns:
- boolean
-
toString
-