jsdsi
Class RangeTag
java.lang.Object
jsdsi.Obj
jsdsi.Tag
jsdsi.ExprTag
jsdsi.RangeTag
- All Implemented Interfaces:
- java.io.Serializable
- public class RangeTag
- extends ExprTag
A tag that specifies a range of allowed values.
- Version:
- $Revision: 1.3.2.1 $ $Date: 2005/11/08 03:12:52 $
- Author:
- Sameer Ajmani, Sean Radford
- See Also:
- Serialized Form
Fields inherited from class jsdsi.Obj |
_obj |
Constructor Summary |
RangeTag(java.lang.String o,
java.lang.String u,
boolean su,
java.lang.String l,
boolean sl)
Creates a new RangeTag from a given lower and upper
limit. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RangeTag
public RangeTag(java.lang.String o,
java.lang.String u,
boolean su,
java.lang.String l,
boolean sl)
- Creates a new
RangeTag
from a given lower and upper
limit.
- Parameters:
o
- defines the ordering.u
- upper limit.su
- is the upper limit strict?l
- lower limit.sl
- is the lower limit strict?
intersect
public Tag intersect(Tag that)
- Description copied from class:
Tag
- Intersects this
Tag
with another one and returns the
result.
- Specified by:
intersect
in class Tag
- Parameters:
that
- tag to intersect this with.
- Returns:
- the intersection of this
Tag
and that
. - See Also:
Tag.intersect(Tag)
intersect
public Tag intersect(StringTag that)
intersect
public Tag intersect(RangeTag that)
equals
public boolean equals(java.lang.Object that)
- Specified by:
equals
in class Obj
- See Also:
Object.equals(Object)
hashCode
public int hashCode()
- Specified by:
hashCode
in class Obj
- See Also:
Object.hashCode()
getOrdering
public java.lang.String getOrdering()
- Returns:
- the ordering of this
RangeTag
; one of:
"alpha" | "numeric" | "time" | "binary" | "date"
.
getUpperLimit
public java.lang.String getUpperLimit()
- Returns:
- the upper limit of this
RangeTag
.
getLowerLimit
public java.lang.String getLowerLimit()
- Returns:
- the lower limit of this
RangeTag
.
upperIsStrict
public boolean upperIsStrict()
- Returns:
true
if the upper limit of this
RangeTag
is strict, false
otherwise.
lowerIsStrict
public boolean lowerIsStrict()
- Returns:
true
if the lower limit of this
RangeTag
is strict, false
otherwise.
toTagSexp
public Sexp toTagSexp()
- Specified by:
toTagSexp
in class Tag
Copyright © 2002-2006 JSDSI. All Rights Reserved.