Oracle

weblogicx.jsp.tags.validators
Interface Customizable

All Superinterfaces:
Serializable
All Known Implementing Classes:
CompareValidator, CustomizableAdapter, RegExpValidator, RequiredFieldValidator

public interface Customizable
extends Serializable

Interface to be implemented by clients wanting to substitute their own validate methods and thus creating new classes to be used as validatorClass attributes in the CustomValidator.


Method Summary
 void setErrorMessage(String name)
          error message being shown to the user.
 void setExpression(String type)
          customExpression which may be used by the implementor for use in the validate method
 void setFieldToValidate(String control)
          field being validated
 boolean validate(ServletRequest request)
          users may use this method to validate the string value.
 

Method Detail

setFieldToValidate

void setFieldToValidate(String control)
field being validated


setErrorMessage

void setErrorMessage(String name)
error message being shown to the user.


setExpression

void setExpression(String type)
customExpression which may be used by the implementor for use in the validate method


validate

boolean validate(ServletRequest request)
                 throws Exception
users may use this method to validate the string value. for eg: the value must contain NYC or it must not contain XYZ or they may even validate it against the custom expression set optionally.

Parameters:
value - : received from the request parameter for this control
Returns:
boolean indicating operation status
Throws:
Exception

Documentation is available at
http://download.oracle.com/docs/cd/E12839_01/web.1111
Copyright 1996,2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Part Number E13941-01
Oracle WebLogic Server 10.3.1 API Reference