|
ThinkUI SQL Client 1.1.3 API | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents constraints for an attribute. The concept of AttributeConstraints provides a dynamic way to validate an attribute value. It is used to complement the static and low-level validation that is done by the AttributeType.
Field Summary | |
static java.lang.String[] |
CAPTIONS
|
static java.lang.String[] |
NAMES
|
Method Summary | |
AttributeConstraints |
copy()
|
java.lang.String |
format(Attribute attr)
Format the constraint based on the given attribute. |
java.lang.String |
getName()
|
void |
init(Attribute attr,
java.lang.String expr)
Initialize the constraint based on the given attribute and expression. |
void |
validate(Attribute attr,
java.lang.Object value)
Perform validation of the given attribute value against the attribute constraints. |
Field Detail |
public static final java.lang.String[] CAPTIONS
public static final java.lang.String[] NAMES
Method Detail |
public AttributeConstraints copy()
public java.lang.String format(Attribute attr)
public java.lang.String getName()
public void init(Attribute attr, java.lang.String expr) throws java.lang.Exception
java.lang.Exception
public void validate(Attribute attr, java.lang.Object value) throws java.lang.Exception
java.lang.Exception
|
ThinkUI SQL Client 1.1.3 API | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |