Interface PropertyVisibilityStrategy


public interface PropertyVisibilityStrategy

Provides mechanism how to define customized property visibility strategy.

This strategy can be set via JsonbConfig.

Since:
JSON Binding 1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Responds whether the given field should be considered as the JsonbProperty.
    boolean
    isVisible(Method method)
    Responds whether the given method should be considered as the JsonbProperty.
  • Method Details

    • isVisible

      boolean isVisible(Field field)
      Responds whether the given field should be considered as the JsonbProperty.
      Parameters:
      field - member of the class
      Returns:
      true if member should be visible
    • isVisible

      boolean isVisible(Method method)
      Responds whether the given method should be considered as the JsonbProperty.
      Parameters:
      method - member of the class
      Returns:
      true if member should be visible