com.sdicons.json.validator.impl
Class ValidatorUtil

java.lang.Object
  extended by com.sdicons.json.validator.impl.ValidatorUtil

public class ValidatorUtil
extends Object


Field Summary
static String ANONYMOUS_RULE
           
static String PARAM_CASE
           
static String PARAM_CLASS
           
static String PARAM_KEY
           
static String PARAM_MAX
           
static String PARAM_MIN
           
static String PARAM_NAME
           
static String PARAM_OPTIONAL
           
static String PARAM_PAIRS
           
static String PARAM_PATTERN
           
static String PARAM_REF
           
static String PARAM_RULE
           
static String PARAM_RULES
           
static String PARAM_TYPE
           
static String PARAM_VALUES
           
 
Constructor Summary
ValidatorUtil()
           
 
Method Summary
static Validator buildValidator(JSONValue aVal)
           
static Validator buildValidator(JSONValue aVal, HashMap<String,Validator> aRuleset)
           
static void requiresAttribute(JSONObject aTarget, String aAttrib, Class aValueType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_NAME

public static final String PARAM_NAME
See Also:
Constant Field Values

PARAM_TYPE

public static final String PARAM_TYPE
See Also:
Constant Field Values

PARAM_RULES

public static final String PARAM_RULES
See Also:
Constant Field Values

PARAM_RULE

public static final String PARAM_RULE
See Also:
Constant Field Values

PARAM_REF

public static final String PARAM_REF
See Also:
Constant Field Values

PARAM_MIN

public static final String PARAM_MIN
See Also:
Constant Field Values

PARAM_MAX

public static final String PARAM_MAX
See Also:
Constant Field Values

PARAM_PAIRS

public static final String PARAM_PAIRS
See Also:
Constant Field Values

PARAM_KEY

public static final String PARAM_KEY
See Also:
Constant Field Values

PARAM_OPTIONAL

public static final String PARAM_OPTIONAL
See Also:
Constant Field Values

PARAM_PATTERN

public static final String PARAM_PATTERN
See Also:
Constant Field Values

PARAM_VALUES

public static final String PARAM_VALUES
See Also:
Constant Field Values

PARAM_CLASS

public static final String PARAM_CLASS
See Also:
Constant Field Values

PARAM_CASE

public static final String PARAM_CASE
See Also:
Constant Field Values

ANONYMOUS_RULE

public static final String ANONYMOUS_RULE
See Also:
Constant Field Values
Constructor Detail

ValidatorUtil

public ValidatorUtil()
Method Detail

requiresAttribute

public static void requiresAttribute(JSONObject aTarget,
                                     String aAttrib,
                                     Class aValueType)
                              throws ValidationException
Throws:
ValidationException

buildValidator

public static Validator buildValidator(JSONValue aVal)
                                throws ValidationException
Throws:
ValidationException

buildValidator

public static Validator buildValidator(JSONValue aVal,
                                       HashMap<String,Validator> aRuleset)
                                throws ValidationException
Throws:
ValidationException


Copyright © 2011. All Rights Reserved.