Class PropertyValuePropagation

  • Direct Known Subclasses:
    ReflectionPropagation

    public abstract class PropertyValuePropagation
    extends Object
    Abstract class for getting / setting value into the property.
    Author:
    Roman Grigoriadi
    • Field Detail

      • writable

        protected boolean writable
        Property can be written (unmarshalled from json)
      • readable

        protected boolean readable
        Property can be read (marshalled to json)
    • Constructor Detail

      • PropertyValuePropagation

        protected PropertyValuePropagation​(Property property,
                                           JsonbContext ctx)
        Construct a property propagation.
        Parameters:
        property - Provided property.
        ctx - Context.
    • Method Detail

      • createInstance

        public static PropertyValuePropagation createInstance​(Property property,
                                                              JsonbContext ctx)
        Create typed instance to use.
        Parameters:
        property - Property to create from.
        ctx - Context.
        Returns:
        Propagation instance.
      • isWritable

        public boolean isWritable()
        Property is writable. Based on access policy and java field modifiers.
        Returns:
        true if can be deserialized from JSON
      • isReadable

        public boolean isReadable()
        Property is readable. Based on access policy and java field modifiers.
        Returns:
        true if can be serialized to JSON
      • getField

        public Field getField()
        Field of a javabean property.
        Returns:
        field
      • getGetter

        public Method getGetter()
        Setter of a javabean property.
        Returns:
        getter
      • getSetter

        public Method getSetter()
        Getter of a javabean property.
        Returns:
        setter
      • isGetterVisible

        public boolean isGetterVisible()
      • isSetterVisible

        public boolean isSetterVisible()