uk.ac.ebi.intenz.webapp.utilities
Class IntEnzValidations

java.lang.Object
  extended by uk.ac.ebi.intenz.webapp.utilities.IntEnzValidations

public class IntEnzValidations
extends Object

This class ...

Version:
$Revision: 1.3 $ $Date: 2008/03/12 12:29:16 $
Author:
Michael Darsow

Constructor Summary
IntEnzValidations()
           
 
Method Summary
static boolean hasNoUnicode(String s)
           
protected static boolean isString(Object o)
           
static boolean validateBrackets(Object bean, org.apache.commons.validator.ValidatorAction validatorAction, org.apache.commons.validator.Field field, org.apache.struts.action.ActionMessages actionMessages, javax.servlet.http.HttpServletRequest httpServletRequest)
           
static boolean validateCASRegistryNumber(Object bean, org.apache.commons.validator.ValidatorAction validatorAction, org.apache.commons.validator.Field field, org.apache.struts.action.ActionMessages actionMessages, javax.servlet.http.HttpServletRequest httpServletRequest)
           
static boolean validateCASRegistryNumberFormat(EnzymeLinkDTO CASLink)
          Validate one CAS registry number
static boolean validateEc(Object bean, org.apache.commons.validator.ValidatorAction validatorAction, org.apache.commons.validator.Field field, org.apache.struts.action.ActionMessages actionMessages, javax.servlet.http.HttpServletRequest httpServletRequest)
          Validate EC numbers
static void validateEnzymeDTOLists(EnzymeDTO enzymeDTO, org.apache.struts.action.ActionMessages errors)
          This method is used by Action classes to check the content of an enzyme form before performing the actual command.
static boolean validateReferences(Object obj, org.apache.commons.validator.ValidatorAction validatorAction, org.apache.commons.validator.Field field, org.apache.struts.action.ActionMessages actionMessages, javax.servlet.http.HttpServletRequest httpServletRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntEnzValidations

public IntEnzValidations()
Method Detail

validateEc

public static boolean validateEc(Object bean,
                                 org.apache.commons.validator.ValidatorAction validatorAction,
                                 org.apache.commons.validator.Field field,
                                 org.apache.struts.action.ActionMessages actionMessages,
                                 javax.servlet.http.HttpServletRequest httpServletRequest)
Validate EC numbers


validateBrackets

public static boolean validateBrackets(Object bean,
                                       org.apache.commons.validator.ValidatorAction validatorAction,
                                       org.apache.commons.validator.Field field,
                                       org.apache.struts.action.ActionMessages actionMessages,
                                       javax.servlet.http.HttpServletRequest httpServletRequest)

validateCASRegistryNumberFormat

public static boolean validateCASRegistryNumberFormat(EnzymeLinkDTO CASLink)
Validate one CAS registry number


validateCASRegistryNumber

public static boolean validateCASRegistryNumber(Object bean,
                                                org.apache.commons.validator.ValidatorAction validatorAction,
                                                org.apache.commons.validator.Field field,
                                                org.apache.struts.action.ActionMessages actionMessages,
                                                javax.servlet.http.HttpServletRequest httpServletRequest)

validateEnzymeDTOLists

public static void validateEnzymeDTOLists(EnzymeDTO enzymeDTO,
                                          org.apache.struts.action.ActionMessages errors)
This method is used by Action classes to check the content of an enzyme form before performing the actual command.

Parameters:
enzymeDTO - DTO storing the form values.
errors - List for storing error errors.

isString

protected static boolean isString(Object o)

validateReferences

public static boolean validateReferences(Object obj,
                                         org.apache.commons.validator.ValidatorAction validatorAction,
                                         org.apache.commons.validator.Field field,
                                         org.apache.struts.action.ActionMessages actionMessages,
                                         javax.servlet.http.HttpServletRequest httpServletRequest)

hasNoUnicode

public static boolean hasNoUnicode(String s)


Copyright © 2013 EMBL-EBI. All Rights Reserved.