Package mrpotatoes.validation

Source Code of mrpotatoes.validation.Certify

/**
* A wrapper class to clean up the DSL for validation.
*
* Though it's easy to use the certifier directly this class is used to ease that pain
* and make it leaner. Something will need to be done if it is to be extended externally
* otherwise calling the certifier class directly will be the only option and that kills
* the idea of a Domain-Specific Language.
*/
package mrpotatoes.validation;

import mrpotatoes.validation.certifiers.empty;
import mrpotatoes.validation.certifiers.length;

/**
*
* @author avillanueva
*/
public class Certify {
  static public Certifiable length() { return new length(); }
  static public Certifiable curseWords() { return new length();
//  static public Certifiable empty() { return new empty(); }
}
TOP

Related Classes of mrpotatoes.validation.Certify

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.