| org.apache.commons.jxpath.JXPathBeanInfo
All known Subclasses: org.apache.commons.jxpath.JXPathBasicBeanInfo,
JXPathBeanInfo | public interface JXPathBeanInfo (Code) | | JXPathBeanInfo is similar to java.beans.BeanInfo in that it describes
properties of a JavaBean class. By default, JXPathBeanInfo classes are
automatically generated by
JXPathIntrospector JXPathIntrospector based on the java.beans.BeanInfo. As with JavaBeans, the user can supply an
alternative implementation of JXPathBeanInfo for a custom class. The
alternative implementation is located by class name, which is the same as the
name of the class it represents with the suffix "XBeanInfo". So, for
example, if you need to provide an alternative JXPathBeanInfo class for class
"com.foo.Bar", write a class "com.foo.BarXBeanInfo" and make it implement the
JXPathBeanInfo interface.
author: Dmitri Plotnikov version: $Revision: 1.7 $ $Date: 2004/02/29 14:17:42 $ |
getDynamicPropertyHandlerClass | Class getDynamicPropertyHandlerClass()(Code) | | For dynamic objects, returns the class implementing
the DynamicPropertyHandler interface. That class can
be used to access dynamic properties.
|
getPropertyDescriptor | PropertyDescriptor getPropertyDescriptor(String propertyName)(Code) | | Returns a PropertyDescriptor for the specified name or null if there
is no such property.
|
getPropertyDescriptors | PropertyDescriptor[] getPropertyDescriptors()(Code) | | Returns a list of property descriptors for the beans described by this
bean info object. Returns null for atomic beans.
|
isAtomic | boolean isAtomic()(Code) | | Returns true if objects of this class are treated as atomic
objects which have no properties of their own.
For example, java.lang.String and java.lang.Number are atomic.
|
isDynamic | boolean isDynamic()(Code) | | Returns true if the objects of this class have dynamic properties
(e.g. java.util.Map). If this method returns true, getPropertyDescriptors
should return null and getDynamicPropertyHandlerClass should return
a valid class name. An object cannot have both static and dynamic
properties at the same time.
|
|
|