Class JXPathBasicBeanInfo

  • All Implemented Interfaces:
    java.io.Serializable, 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.
    Version:
    $Revision: 668329 $ $Date: 2008-06-16 16:59:48 -0500 (Mon, 16 Jun 2008) $
    See Also:
    BeanInfo, Introspector, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JXPathBasicBeanInfo​(java.lang.Class clazz)
      Create a new JXPathBasicBeanInfo.
      JXPathBasicBeanInfo​(java.lang.Class clazz, boolean atomic)
      Create a new JXPathBasicBeanInfo.
      JXPathBasicBeanInfo​(java.lang.Class clazz, java.lang.Class dynamicPropertyHandlerClass)
      Create a new JXPathBasicBeanInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class getDynamicPropertyHandlerClass()
      For a dynamic class, returns the corresponding DynamicPropertyHandler class.
      java.beans.PropertyDescriptor getPropertyDescriptor​(java.lang.String propertyName)
      Returns a PropertyDescriptor for the specified name or null if there is no such property.
      java.beans.PropertyDescriptor[] getPropertyDescriptors()
      Returns a list of property descriptors for the beans described by this bean info object.
      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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • PROPERTY_DESCRIPTOR_COMPARATOR

        private static final java.util.Comparator PROPERTY_DESCRIPTOR_COMPARATOR
      • atomic

        private boolean atomic
      • clazz

        private java.lang.Class clazz
      • dynamicPropertyHandlerClass

        private java.lang.Class dynamicPropertyHandlerClass
      • propertyDescriptors

        private transient java.beans.PropertyDescriptor[] propertyDescriptors
      • propertyDescriptorMap

        private transient java.util.HashMap propertyDescriptorMap
    • Constructor Detail

      • JXPathBasicBeanInfo

        public JXPathBasicBeanInfo​(java.lang.Class clazz)
        Create a new JXPathBasicBeanInfo.
        Parameters:
        clazz - bean class
      • JXPathBasicBeanInfo

        public JXPathBasicBeanInfo​(java.lang.Class clazz,
                                   boolean atomic)
        Create a new JXPathBasicBeanInfo.
        Parameters:
        clazz - bean class
        atomic - whether objects of this class are treated as atomic objects which have no properties of their own.
      • JXPathBasicBeanInfo

        public JXPathBasicBeanInfo​(java.lang.Class clazz,
                                   java.lang.Class dynamicPropertyHandlerClass)
        Create a new JXPathBasicBeanInfo.
        Parameters:
        clazz - bean class
        dynamicPropertyHandlerClass - dynamic property handler class
    • Method Detail

      • 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
        Returns:
        boolean
      • isDynamic

        public boolean isDynamic()
        Return true if the corresponding objects have dynamic properties.
        Specified by:
        isDynamic in interface JXPathBeanInfo
        Returns:
        boolean
      • getPropertyDescriptors

        public java.beans.PropertyDescriptor[] getPropertyDescriptors()
        Description copied from interface: JXPathBeanInfo
        Returns a list of property descriptors for the beans described by this bean info object. Returns null for atomic beans.
        Specified by:
        getPropertyDescriptors in interface JXPathBeanInfo
        Returns:
        PropertyDescriptor[]
      • getPropertyDescriptor

        public java.beans.PropertyDescriptor getPropertyDescriptor​(java.lang.String propertyName)
        Description copied from interface: JXPathBeanInfo
        Returns a PropertyDescriptor for the specified name or null if there is no such property.
        Specified by:
        getPropertyDescriptor in interface JXPathBeanInfo
        Parameters:
        propertyName - property name
        Returns:
        PropertyDescriptor
      • getDynamicPropertyHandlerClass

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object