org.formaria.editor.project.pages.validation
Class EditorValidator
java.lang.Object
org.formaria.aria.validation.AbstractValidator
org.formaria.editor.project.pages.validation.EditorValidator
- All Implemented Interfaces:
- Validator
public class EditorValidator
- extends AbstractValidator
A validation for the editor such that holds the validation specification
Copyright (c) Formaria Ltd., 1998-2007
See license.txt for license details
| Fields inherited from class org.formaria.aria.validation.AbstractValidator |
container, currentProject, errorLevel, formattedMessage, mandatory, mask, message, showErrorBadges, start, translator, USE_FAIL_STYLE, USE_NORMAL_STYLE, USE_WARN_STYLE, validationMethod, validationName, value |
|
Method Summary |
java.util.Properties |
getAttributes()
Get the attributes of the original validation |
java.lang.String |
getClassName()
|
void |
setClassName(java.lang.String klassName)
|
void |
setup(XmlElement element)
Set the validation parameters |
void |
validate(java.lang.Object object,
boolean b)
Carry out a page level or inline validation on the passed component |
| Methods inherited from class org.formaria.aria.validation.AbstractValidator |
applyErrorStyle, getLevel, getMask, getMessage, getName, getText, getValueAsString, invokeMethod, replaceToken, replaceTokens, setMask, setName, setup, setValidationColors, setValidationMethod, throwException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorValidator
public EditorValidator(Project project)
- Creates a new instance of EditorValidator
validate
public void validate(java.lang.Object object,
boolean b)
throws java.lang.Exception
- Description copied from interface:
Validator
- Carry out a page level or inline validation on the passed component
- Parameters:
object - The component whose value is to be validatedb - Set to true if page level validations are taking place or false for inline
- Throws:
java.lang.Exception - throw if there is a problem
setClassName
public void setClassName(java.lang.String klassName)
getClassName
public java.lang.String getClassName()
setup
public void setup(XmlElement element)
- Set the validation parameters
- Parameters:
element - the validator parameters
getAttributes
public java.util.Properties getAttributes()
- Get the attributes of the original validation