| |
|
| java.lang.Object net.xoetrope.xui.validation.XBaseValidator
All known Subclasses: net.xoetrope.xui.validation.XMandatoryValidator, net.xoetrope.xui.validation.XMinMaxValidator,
XBaseValidator | abstract public class XBaseValidator implements XValidator(Code) | | A basic implementation of the XValidator interface
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
$Revision: 1.14 $
|
errorLevel | protected int errorLevel(Code) | | |
mandatory | protected boolean mandatory(Code) | | |
messagevalueformattedMessagevalidationName | protected String messagevalueformattedMessagevalidationName(Code) | | |
start | protected boolean start(Code) | | |
XBaseValidator | public XBaseValidator()(Code) | | |
XBaseValidator | public XBaseValidator(String name, int validatorMask)(Code) | | Constructor sets up member variables
Parameters: name - Parameters: validatorMask - |
getLevel | public int getLevel()(Code) | | Get the error level of the validations
the error level |
getMask | public int getMask()(Code) | | Get the event mask. The mask helps filter the events for which the
validator is invoked
the mask |
getMessage | public String getMessage()(Code) | | Get the validation message which is formatted after the tokens have been
replaced
The formatted message. |
getName | public String getName()(Code) | | Get the name of the validation
The name |
getText | protected String getText(Component c)(Code) | | Get the text value of the component.
Parameters: c - The component The text components value |
getValueAsString | public String getValueAsString()(Code) | | Get the value as a string object
the value as string |
invokeMethod | public Object invokeMethod()(Code) | | Call the funcion to get the value we are validating.
The result of the function call |
replaceToken | protected void replaceToken(String lookup, String replacement)(Code) | | Carry out a replacement on the validation message
Parameters: lookup - The text to find Parameters: replacement - The text to replace the text with |
replaceTokens | protected void replaceTokens()(Code) | | Replace any further tokens in the message
|
setMask | public void setMask(int newMask)(Code) | | Set the event mask. The mask helps filter the events for which the
validator is invoked
the new mask value |
setName | public void setName(String name)(Code) | | Set the name of the validation
Parameters: name - the new name |
setValidationMethod | public void setValidationMethod(Method m, Container c)(Code) | | Set the Method of the XPage to be invoked when we are doing a funcion
validation
Parameters: m - The method to be invoked Parameters: page - The XPage which contains the Method. |
setup | public void setup(XmlElement element)(Code) | | Set the validation parameters
Parameters: element - the validator parameters |
throwException | protected void throwException() throws Exception(Code) | | Replace the remaining tokens and throw the exception
throws: Exception - |
|
|
|