Class JsonProperty


  • public class JsonProperty
    extends Property
    • Method Detail

      • get

        public Object get​(Object bean)
        Description copied from class: Property
        Get the value of this property from the given bean instance.
        Overrides:
        get in class Property
        Parameters:
        bean - the instance
        Returns:
        value of the current property
      • set

        public Object set​(Object bean,
                          Object value)
        Description copied from class: Property
        Set the value for this property to the given bean instance.

        If the property is a collection, ensure the proper parent-child relationship marked with mappedBy attribute.

        Overrides:
        set in class Property
        Parameters:
        bean - the bean instance
        value - the value for the property
        Returns:
        old value of the property
      • add

        public Object add​(Object bean,
                          Object item)
        Description copied from class: Property
        If this is a multi-valued field (one-to-many, many-to-many), add the specified item to the collection.
        Overrides:
        add in class Property
        Parameters:
        bean - the bean instance
        item - collection item
        Returns:
        the same bean instance
      • addAll

        public Object addAll​(Object bean,
                             Collection<?> items)
        Description copied from class: Property
        If this is a multi-valued field (one-to-many, many-to-many), add all the specified items to the collection.
        Overrides:
        addAll in class Property
        Parameters:
        bean - the bean instance
        items - the items to add
        Returns:
        the same bean instance