|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.validation.AbstractValidator
org.formaria.editor.project.validation.EditorValidationProxy
public class EditorValidationProxy
A validation for use in the editor as a standin for a named validation that cannot be instantiated for some reason.
Copyright: Copyright (c) Formaria Ltd., 2001-2006
License: see license.txt
| 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 | |
|---|---|
EditorValidationProxy(Project project)
Creates a new instance of EditorValidationProxy |
|
| Method Summary | |
|---|---|
XmlElement |
getOriginalElement()
Get the XmlElement from which the validation was created. |
void |
outputExtraProperties(XmlElement childXml)
Output the extra validation properties uspported by this validator |
void |
setup(XmlElement rulesConfig,
XmlElement instanceConfig)
Set the validation parameters |
void |
validate(java.lang.Object c,
boolean forceMandatory)
Carries out the mandatory validation on the component. |
| Methods inherited from class org.formaria.aria.validation.AbstractValidator |
|---|
applyErrorStyle, getLevel, getMask, getMessage, getName, getText, getValueAsString, invokeMethod, replaceToken, replaceTokens, setMask, setName, setValidationColors, setValidationMethod, throwException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorValidationProxy(Project project)
project - the owner project| Method Detail |
|---|
public void setup(XmlElement rulesConfig,
XmlElement instanceConfig)
setup in interface Validatorsetup in class AbstractValidatorrulesConfig - the validator parametersinstanceConfig - the page r instance configuration information
public void validate(java.lang.Object c,
boolean forceMandatory)
throws java.lang.Exception
forceMandatory - true when inline validations are carried outc - The component triggering the validation
java.lang.Exception - Contains the details of the messagepublic XmlElement getOriginalElement()
public void outputExtraProperties(XmlElement childXml)
childXml - the output xml element which already contains the 'rule' and
'target' attributes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||