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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether objects of this class are treated as atomic objects which have no properties of their own.private final ClassBean class.private ClassThe DynamicPropertyHandler class for a dynamic class.private static final Comparator<PropertyDescriptor> private HashMap<String, PropertyDescriptor> PropertyDescriptor for the specified name or null if there is no such property.private PropertyDescriptor[]List of property descriptors for the beans described by this bean info object.private static final long -
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.booleanisAtomic()Tests whether 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()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
PROPERTY_DESCRIPTOR_COMPARATOR
-
atomic
private boolean atomicWhether objects of this class are treated as atomic objects which have no properties of their own. -
clazz
Bean class. -
dynamicPropertyHandlerClass
The DynamicPropertyHandler class for a dynamic class. -
propertyDescriptors
List of property descriptors for the beans described by this bean info object. -
propertyDescriptorMap
PropertyDescriptor for the specified name or null if there is no such property.
-
-
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:
getDynamicPropertyHandlerClassin interfaceJXPathBeanInfo- Returns:
- the DynamicPropertyHandler class for a dynamic class.
-
getPropertyDescriptor
Description copied from interface:JXPathBeanInfoGets a PropertyDescriptor for the specified name or null if there is no such property.- Specified by:
getPropertyDescriptorin interfaceJXPathBeanInfo- Parameters:
propertyName- property name- Returns:
- PropertyDescriptor
-
getPropertyDescriptors
Description copied from interface:JXPathBeanInfoGets 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[]
-
isAtomic
public boolean isAtomic()Tests whether objects of this class are treated as atomic objects which have no properties of their own.- Specified by:
isAtomicin interfaceJXPathBeanInfo- Returns:
- whether objects of this class are treated as atomic objects which have no properties of their own.
-
isDynamic
public boolean isDynamic()Return true if the corresponding objects have dynamic properties.- Specified by:
isDynamicin interfaceJXPathBeanInfo- Returns:
- boolean
-
toString
-