Skip to content

Android Saripaar Basics

ragunathjawahar edited this page Nov 22, 2012 · 5 revisions

Android Saripaar is a simple rule-based validation library for Android. The library began with the following design goals:

  • To create a powerful and easy to use library.
  • Eliminate boiler-plate code.
  • Isolate validation logic.
  • Make asynchronous validations seamless.

And these goals have come to fruition with Saripaar.

Basics

  • Saripaar is a rule-based library, so every validation logic goes inside its Rule.
  • Rules are validated in the order they are added, starting with annotations.
  • Validation results are delivered via callbacks in the Validator.ValidationListener interface.
Clone this wiki locally