001// Copyright (c) 2001 Hursh Jain (http://www.mollypages.org) 
002// The Molly framework is freely distributable under the terms of an
003// MIT-style license. For details, see the molly pages web site at:
004// http://www.mollypages.org/. Use, modify, have fun !
005
006package fc.util;
007
008import java.util.*;
009
010/** 
011A range of values such as numbers, dates etc. 
012
013@author hursh jain
014**/
015public abstract class Range 
016{
017protected boolean negated = false;
018  
019/** Checks if this range is negated. **/
020public boolean isNegated() {
021  return negated;
022  } 
023
024/** 
025Sets this range to be negated or not. By default
026ranges are <b>not</b> negated.
027
028@param  val   <tt>true</tt> to set negated
029**/
030public void setNegated(boolean val) {
031  negated = val;
032  }
033  
034}          //~class Range