com.clra.member
Class Validation
java.lang.Object
|
+--com.clra.member.Validation
- public class Validation
- extends Object
Validation rules for various types of (unencapsulated) data. Other
validation rules are contained in class definitions of encapsulated
data types, such as Name, Address and Telephone.
- Version:
- $Id: Validation.java,v 1.2 2002/02/18 18:03:29 rphall Exp $
- Author:
- Rick Hall
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Validation
public Validation()
isValidMemberId
public static boolean isValidMemberId(int id)
isValidMemberAccountName
public static boolean isValidMemberAccountName(String name)
- Validates an account name.
isValidMemberAccountPassword
public static boolean isValidMemberAccountPassword(String password)
isValidMemberClraStatus
public static boolean isValidMemberClraStatus(String clraStatus)
isValidMemberEmail
public static boolean isValidMemberEmail(String email)
isValidTelephoneCollection
public static boolean isValidTelephoneCollection(Map numbers)
- Validates a collection of telephone numbers.
isValidMemberClraYear
public static boolean isValidMemberClraYear(Date clraYear)
isValidMemberBirth
public static boolean isValidMemberBirth(Date birth)