Class BeanAccessor

  • Direct Known Subclasses:
    BeanFormatter

    public class BeanAccessor
    extends Object
    Used to access properties of a bean, be it a regular JavaBean or a Map, or even a List, for properties like _0, _1, etc.
    • Constructor Detail

      • BeanAccessor

        protected BeanAccessor()
    • Method Detail

      • get

        public <T> T get​(Object bean,
                         String property)
        Gets the given property from the given bean. When the property name is equals to SELF, returns the bean itself. It can also use the CUSTOM_FIELD prefix, concatenated with the field id to access custom field values
      • set

        public void set​(Object bean,
                        String property,
                        Object value)
        Sets a given property value on the given bean. Does not support custom fields.