org.formaria.editor.project.pages.validation
Class EditorValidator

java.lang.Object
  extended by org.formaria.aria.validation.AbstractValidator
      extended by 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


Field Summary
 
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
 
Fields inherited from interface org.formaria.aria.validation.Validator
IGNORE_BLANKS, LEVEL_ERROR, LEVEL_IGNORE, LEVEL_WARNING, MANDATORY, STRICT_CHECK, WEAK_CHECK
 
Constructor Summary
EditorValidator(Project project)
          Creates a new instance of EditorValidator
 
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
 

Constructor Detail

EditorValidator

public EditorValidator(Project project)
Creates a new instance of EditorValidator

Method Detail

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 validated
b - 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