public class SimpleConstraint extends Object
Modifier and Type | Method and Description |
---|---|
void |
$init(java.lang.Object a,
String b,
String c)
Constructor.
|
java.lang.Object |
getFlags()
Returns the constraint flags Object which has many attribute about constraint,
For example, f.NO_POSITIVE = true.
|
protected void |
parseConstraint_(String cst)
Parses a constraint into an Object attribute.
|
void |
validate(Widget wgt,
java.lang.Object val)
validation for flag, validate date if val is date
|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
public void $init(java.lang.Object a, String b, String c)
a
- It can be String or number, the number or name of flag,
such as "no positive", 0x0001.b
- the regular expressionc
- the error messagepublic java.lang.Object getFlags()
protected void parseConstraint_(String cst)
Deriving classes might override this to provide more constraints.
cst
- public void validate(Widget wgt, java.lang.Object val)
wgt
- val
- a String, a number, or a date, the number or name of flag,
such as "no positive", 0x0001.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.