net.sf.minuteProject.architecture.validation.model
Class AbstractModelValidator

java.lang.Object
  extended by net.sf.minuteProject.architecture.validation.model.AbstractModelValidator

public class AbstractModelValidator
extends Object


Constructor Summary
AbstractModelValidator()
           
 
Method Summary
protected  ValidationModelError validateMaxLength(String fieldName, int fieldLength, int acceptedLength)
           
protected  ValidationModelError validateMaxLength(String fieldName, long fieldLength, long acceptedLength)
           
protected  ValidationModelError validateMaxLength(String fieldName, String fieldValue, int acceptedLength)
           
protected  ValidationModelError validatePresence(String fieldName, Object fieldValue, boolean isTobePresent)
           
protected  ValidationModelError validatePresence(String fieldName, String fieldValue, boolean isTobePresent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModelValidator

public AbstractModelValidator()
Method Detail

validateMaxLength

protected ValidationModelError validateMaxLength(String fieldName,
                                                 String fieldValue,
                                                 int acceptedLength)

validateMaxLength

protected ValidationModelError validateMaxLength(String fieldName,
                                                 int fieldLength,
                                                 int acceptedLength)

validateMaxLength

protected ValidationModelError validateMaxLength(String fieldName,
                                                 long fieldLength,
                                                 long acceptedLength)

validatePresence

protected ValidationModelError validatePresence(String fieldName,
                                                Object fieldValue,
                                                boolean isTobePresent)

validatePresence

protected ValidationModelError validatePresence(String fieldName,
                                                String fieldValue,
                                                boolean isTobePresent)


Copyright © 2013. All Rights Reserved.