Interface Ruler

All Known Implementing Classes:
BaseRuler

public interface Ruler
  • Method Summary

    Modifier and Type
    Method
    Description
    static Ruler
    get(String type)
     
    io.horizon.exception.WebException
    verify(String field, Object value, Rule rule)
    Verify each field for @BodyParam
    static io.horizon.exception.WebException
    verify(Collection<Rule> rules, String field, Object value)
     
  • Method Details

    • get

      static Ruler get(String type)
    • verify

      static io.horizon.exception.WebException verify(Collection<Rule> rules, String field, Object value)
    • verify

      io.horizon.exception.WebException verify(String field, Object value, Rule rule)
      Verify each field for @BodyParam
      Parameters:
      field - Input field of the data structure
      value - The input field reflect value literal
      rule - The rule that has been defined.
      Returns:
      WebException that the validated error here.