Class FieldProperty

  • All Implemented Interfaces:
    java.lang.Comparable<Property>

    public class FieldProperty
    extends GenericProperty

    A FieldProperty is a Property which is accessed as a field, without going through accessor methods (setX, getX). The field may have any scope (public, package, protected, private).

    • Constructor Detail

      • FieldProperty

        public FieldProperty​(java.lang.reflect.Field field)
    • Method Detail

      • set

        public void set​(java.lang.Object object,
                        java.lang.Object value)
                 throws java.lang.Exception
        Specified by:
        set in class Property
        Throws:
        java.lang.Exception
      • get

        public java.lang.Object get​(java.lang.Object object)
        Specified by:
        get in class Property