Class BeanProperty

    • Constructor Detail

      • BeanProperty

        protected BeanProperty​(Object bean,
                               PropertyDescriptor descriptor)
        constructs a new BeanProperty.
        Parameters:
        bean - Object; the bean to introspect
        descriptor - PropertyDescriptor; the descriptor of the property
    • Method Detail

      • getName

        public String getName()
        Retrieves the name of the property.
        Specified by:
        getName in interface Property
        Returns:
        The name of the property
      • getType

        public Class<?> getType()
        Returns the type of this property's value.
        Specified by:
        getType in interface Property
        Returns:
        A {see java.lang.Class}instance denoting the type of this property.
      • setRegularValue

        protected void setRegularValue​(Object values)
        Method used to set a regular (i.e. not-composite) property value.
        Specified by:
        setRegularValue in class AbstractProperty
        Parameters:
        values - Object; the new value
      • getValue

        public Object getValue()
        Returns the current value of this property.
        Specified by:
        getValue in interface Property
        Returns:
        The current value of this property.
      • getInstance

        public Object getInstance()
        Retrieves the introspected object, which contains this Property.
        Specified by:
        getInstance in interface Property
        Returns:
        the instance
      • isEditable

        public boolean isEditable()
        Returns whether the value of this property may be altered.
        Specified by:
        isEditable in interface Property
        Returns:
        'True', when this property's value can be altered, 'false' otherwise.