BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogicx.jsp.tags.validators
Class CustomizableAdapter

java.lang.Object
  extended byweblogicx.jsp.tags.validators.CustomizableAdapter
All Implemented Interfaces:
Customizable, Serializable
Direct Known Subclasses:
CompareValidator, RegExpValidator, RequiredFieldValidator

public abstract class CustomizableAdapter
extends Object
implements Customizable

class provides the default base implementation of the Customizable interface, users can extend this class and override beaviour

See Also:
Serialized Form
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
protected  String errorMessage
           
protected  String expression
           
protected  String fieldToValidate
           
 
Constructor Summary
CustomizableAdapter()
           
 
Method Summary
static String attributeDequote(String attr)
           
 boolean equals(Object o)
           
 String getErrorMessage()
           
 String getExpression()
           
 String getFieldToValidate()
           
 void setErrorMessage(String error)
          error message being shown to the user.
 void setExpression(String exp)
          customExpression which may be used by the implementor for use in the validate method
 void setFieldToValidate(String control)
          field being validated
abstract  boolean validate(ServletRequest request)
          users may use this method to validate the value of the parameter in the request for eg: the parameter value must contain NYC or it must not contain XYZ or they may even validate it against the custom expression set optionally.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorMessage

protected String errorMessage

expression

protected String expression

fieldToValidate

protected String fieldToValidate
Constructor Detail

CustomizableAdapter

public CustomizableAdapter()
Method Detail

attributeDequote

public static String attributeDequote(String attr)

equals

public boolean equals(Object o)

getErrorMessage

public String getErrorMessage()

getExpression

public String getExpression()

getFieldToValidate

public String getFieldToValidate()

setErrorMessage

public void setErrorMessage(String error)
Description copied from interface: Customizable
error message being shown to the user.

Specified by:
setErrorMessage in interface Customizable

setExpression

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

Specified by:
setExpression in interface Customizable

setFieldToValidate

public void setFieldToValidate(String control)
Description copied from interface: Customizable
field being validated

Specified by:
setFieldToValidate in interface Customizable

validate

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

Specified by:
validate in interface Customizable
Parameters:
request - : received
Returns:
boolean indicating operation status
Throws:
Exception

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs91
Copyright 2005 BEA Systems Inc.