Class PropertyPath.PropertyContainer

  • Enclosing class:
    PropertyPath

    public static class PropertyPath.PropertyContainer
    extends Object
    A helper class that stores Object and PropertyDescriptor together.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_Read

        protected Method m_Read
        the read method.
      • m_Write

        protected Method m_Write
        the write method.
      • m_Object

        protected Object m_Object
        the associated object.
    • Constructor Detail

      • PropertyContainer

        public PropertyContainer​(PropertyPath.Path path,
                                 PropertyDescriptor desc,
                                 Object obj)
        Initializes the container.
        Parameters:
        path - the path to this property
        desc - the property descriptor
        obj - the associated object
      • PropertyContainer

        public PropertyContainer​(PropertyPath.Path path,
                                 Method read,
                                 Method write,
                                 Object obj)
        Initializes the container.
        Parameters:
        path - the path to this property
        read - the read method
        write - the write method
        obj - the associated object
    • Method Detail

      • getPath

        public PropertyPath.Path getPath()
        Returns the associated path.
        Returns:
        the path
      • getReadMethod

        public Method getReadMethod()
        Returns the read method.
        Returns:
        the method
      • getWriteMethod

        public Method getWriteMethod()
        Returns the write method.
        Returns:
        the method
      • getObject

        public Object getObject()
        returns the stored object.
        Returns:
        the stored object