public class Constraints extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Constraints.Controler
A specific code to control a value.
|
| Constructor and Description |
|---|
Constraints() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
check(String type,
String value,
String constraints) |
static Object |
checkConstraints(String type,
String value,
String constraints) |
static Object |
checkRange(Class thatClass,
String value,
String lower,
String upper) |
static Object |
checkRange(String type,
String value,
String lower,
String upper)
checks if the value of type is between lower and upper (included).
|
static Object |
checkWithControler(String value,
Constraints.Controler controler) |
public static Object checkConstraints(String type, String value, String constraints)
public static Object checkRange(String type, String value, String lower, String upper)
type - a Class Name. the class should have a static factory method valueOf(String val)
(but java.lang.Character is still ok)value - lower - upper - public static Object checkRange(Class thatClass, String value, String lower, String upper)
public static Object checkWithControler(String value, Constraints.Controler controler)
Copyright © 2015 LSST. All rights reserved.