| java.lang.Object net.xoetrope.xui.validation.XValidationFactory
All known Subclasses: net.xoetrope.builder.editor.XEditorValidationFactory,
XValidationFactory | public class XValidationFactory (Code) | | Constucts validations be reading rules from a configuration file
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
$Revision: 1.16 $
|
XValidationFactory | public XValidationFactory()(Code) | | |
XValidationFactory | public XValidationFactory(Reader reader)(Code) | | Constructor which reads validations from the reader
Parameters: reader - Reader of file containing validations |
getValidation | public XValidator getValidation(String validationName, Method m, int mask, Container page)(Code) | | Creates an XValidation object which validates against a value returned from
a function call
Parameters: validationName - The name of the validation Parameters: m - The Method to call in order to get the value to validate against Parameters: mask - Parameters: page - The page object which contains the function The new XValidator |
getValidation | public XValidator getValidation(String validationName, int mask, Container page)(Code) | | Gets the validation for the validationName. Checks first to see if the
validation is a predefined type in which case it reads it's required
attributes. If the validation type is custom we just need to create a
validator from the class attribute
Parameters: validationName - The name of the validation Parameters: mask - The new XValidator |
read | public void read(Reader read)(Code) | | Loads XmlElements from the file and puts the element into the validations
Hashtable with the name of the validation as the key.
Parameters: read - |
|
|