Class FieldProperty

    • Constructor Detail

      • FieldProperty

        public FieldProperty​(Object owner,
                             Field descriptor,
                             boolean editable)
        constructs a new FieldProperty.
        Parameters:
        owner - Object; its owner
        descriptor - Field; the descriptor
        editable - boolean; is the property editable
      • FieldProperty

        public FieldProperty​(Object owner,
                             Field descriptor)
        constructs a new FieldProperty.
        Parameters:
        owner - Object; its owner
        descriptor - Field; the descriptor
    • 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

        public void setRegularValue​(Object value)
        Method used to set a regular (i.e. not-composite) property value.
        Specified by:
        setRegularValue in class AbstractProperty
        Parameters:
        value - 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.