Validators
Class UserValidator

java.lang.Object
  extended byValidators.UserValidator

public class UserValidator
extends java.lang.Object

Author:
student This class is being used for validating the user user details.

Field Summary
private  java.lang.String message
           
 
Constructor Summary
UserValidator()
           
 
Method Summary
 java.lang.String getMessage()
          This method is being used for getting the error if the validation was unsucessful.
 void setMessage(java.lang.String message)
          This method is being used for setting the error message.
 boolean validate(User_Data userData)
          This method is being used for validation of user details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

private java.lang.String message
Constructor Detail

UserValidator

public UserValidator()
Method Detail

getMessage

public java.lang.String getMessage()
This method is being used for getting the error if the validation was unsucessful.

Returns:
String The message to be displayed.

setMessage

public void setMessage(java.lang.String message)
This method is being used for setting the error message.

Parameters:
message - The message to be displayed.
Returns:
void

validate

public boolean validate(User_Data userData)
This method is being used for validation of user details.

Parameters:
userData - The user details that are to be validated.
Returns:
boolean Specifies whether the validation was successful.