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:
    JsonbConfig
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isVisible​(Field field)
      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 Detail

      • 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