Class PropertyValuePropagation

  • Direct Known Subclasses:
    ReflectionPropagation

    public abstract class PropertyValuePropagation
    extends java.lang.Object
    Abstract class for getting / setting value into the property.
    • Constructor Detail

      • PropertyValuePropagation

        protected PropertyValuePropagation​(Property property,
                                           javax.json.bind.config.PropertyVisibilityStrategy strategy)
        Construct a property propagation.
        Parameters:
        property - Provided property.
        strategy - Visibility strategy
    • Method Detail

      • acceptMethod

        protected abstract void acceptMethod​(java.lang.reflect.Method method,
                                             PropertyValuePropagation.OperationMode mode)
        Accept a Method to use value propagation.
        Parameters:
        method - method
        mode - read or write
      • acceptField

        protected abstract void acceptField​(java.lang.reflect.Field field,
                                            PropertyValuePropagation.OperationMode mode)
        Accept a Field to use for value propagation.
        Parameters:
        field - field
        mode - mod
      • 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 java.lang.reflect.Field getField()
        Field of a javabean property.
        Returns:
        field
      • getGetter

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

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

        public boolean isGetterVisible()
      • isSetterVisible

        public boolean isSetterVisible()