yarfraw.utils
Class ValidationUtils

java.lang.Object
  extended by yarfraw.utils.ValidationUtils

public class ValidationUtils
extends Object


Method Summary
static void validateEmails(String message, String... emails)
          Validation methods for emails.
static void validateNotNull(String message, Object... o)
           
static void validateUri(String message, String... uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validateNotNull

public static void validateNotNull(String message,
                                   Object... o)
                            throws ValidationException
Throws:
ValidationException

validateUri

public static void validateUri(String message,
                               String... uri)
                        throws ValidationException
Throws:
ValidationException

validateEmails

public static void validateEmails(String message,
                                  String... emails)
                           throws ValidationException
Validation methods for emails.

Parameters:
message - - A custom message for the ValidationException
emails -
Throws:
ValidationException - - if any of the input emails are not valid.


Copyright © 2008. All Rights Reserved.