com.plumtree.uiinfrastructure.pagecontrols.framework
Class AValidator

java.lang.Object
  extended by com.plumtree.uiinfrastructure.pagecontrols.framework.AValidator
Direct Known Subclasses:
IntRangeValidator, LengthValidator, NotEmptyValidator, PositiveIntValidator

public abstract class AValidator
extends java.lang.Object

This abstract class defines some basic elements that all Validators share. A Validator is an object used by Page Controls to validate their input against its internal criteria that standardizes Page Control Validation. Each Validator has a Validate method for server side validation and has a GetJSValidationCode & GetJSFunction method for client side validation.

Author:
caiusv

Field Summary
 java.lang.String m_sErrorMessage
          error message associated with this validator
 
Constructor Summary
AValidator()
           
 
Method Summary
 java.lang.String GetErrorMessage()
          Returns the error message
 void SetErrorMessage(java.lang.String errorMessage)
          Sets the error message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_sErrorMessage

public java.lang.String m_sErrorMessage
error message associated with this validator

Constructor Detail

AValidator

public AValidator()
Method Detail

GetErrorMessage

public java.lang.String GetErrorMessage()
Returns the error message

Returns:
the m_sErrorMessage

SetErrorMessage

public void SetErrorMessage(java.lang.String errorMessage)
Sets the error message

Parameters:
errorMessage - the error message



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.