Class PropertyValuePropagation

java.lang.Object
org.eclipse.yasson.internal.model.PropertyValuePropagation
Direct Known Subclasses:
ReflectionPropagation

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

    • PropertyValuePropagation

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

    • acceptMethod

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

      protected abstract void acceptField(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 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()