|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XValidator
An interface describing a validator. The work of the validator will be done in the validate method. If an error is called then an exception will be thrown. Typically the exception will be caught in a panel class such as XPage. The handleException method of a XValidationExceptionHandler implementation will then be invoked.
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Field Summary | |
|---|---|
static int |
IGNORE_BLANKS |
static int |
LEVEL_ERRORThe validation generated an error |
static int |
LEVEL_IGNOREignore the results of this validation |
static int |
LEVEL_WARNINGThe validation generated a warning |
static int |
MANDATORYwhether input is mandatory or not |
static int |
STRICT_CHECK |
static int |
WEAK_CHECK |
| Method Summary | |
|---|---|
int |
getLevel()Get the error level of the validations LEVEL_IGNORE = 0 LEVEL_WARNING = 1 LEVEL_ERROR = 2 IGNORE_BLANKS = 1024 MANDATORY = 2048 WEAK_CHECK = 4096 STRICT_CHECK = 8192 |
int |
getMask()Get the event mask. |
java.lang.String |
getMessage()Get the validation message which is formatted after the tokens have been replaced |
java.lang.String |
getName()Get the name of the validation |
java.lang.String |
getValueAsString()Get the value as a string object |
void |
setValidationMethod(java.lang.reflect.Method m, java.lang.Object page)Set the Method of the XPage to be invoked when we are doing a funcion validation |
void |
validate(java.lang.Object c, boolean forceMandatory)Carry out a page level or inline validation on the passed component |
| Field Detail |
|---|
static final int LEVEL_IGNORE
static final int LEVEL_WARNING
static final int LEVEL_ERROR
static final int IGNORE_BLANKS
static final int MANDATORY
static final int WEAK_CHECK
static final int STRICT_CHECK
| Method Detail |
|---|
void validate(java.lang.Object c,
boolean forceMandatory)
throws java.lang.Exception
c - The component whose value is to be validatedforceMandatory - Set to true if page level validations are taking place or false for inlinejava.lang.Exception - throw if there is a problemint getMask()
void setValidationMethod(java.lang.reflect.Method m,
java.lang.Object page)
m - The method to be invokedpage - The XPage which contains the Method.java.lang.String getName()
java.lang.String getMessage()
java.lang.String getValueAsString()
int getLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||