spcp7.imagegallery.abstractionlayer.util
Class GeneralValidation

java.lang.Object
  extended by spcp7.imagegallery.abstractionlayer.util.GeneralValidation

public class GeneralValidation
extends java.lang.Object

This is the genral validation class for validation methods which could be useful for any spcp7 imagegallery or even every spcp7 project.

Author:
Phillip Merensky

Constructor Summary
GeneralValidation()
           
 
Method Summary
 void validateRange(int from, int to)
          Validates a Range and throws an RangeNotValidException if the supplied range is invalid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralValidation

public GeneralValidation()
Method Detail

validateRange

public void validateRange(int from,
                          int to)
                   throws RangeNotValidException
Validates a Range and throws an RangeNotValidException if the supplied range is invalid.

Parameters:
from - lower border of range
to - upper border of range
Throws:
RangeNotValidException - If the range supplied is not valid. (from < 0 || to < 0 || from > to)


Copyright © 2008. All Rights Reserved.