public class AttributeConstraint
extends java.lang.Object
AttributeConstraint
s are the basic elements of a
Filter
.
An AttributeConstraint
is defined by an
operator and a value, and it is associated with
an attribute name. Applying an
AttributeConstraint
with operator op and
value v to an attribute value x means computing
x op v.
The operators provided by AttributeConstraint
are
defined in Op
. They are equal,
not-equal, less-than, less-or-equal,
greater-than,greater-or-equal,
has-substring, has-prefix, has-suffix,
and any.
Modifier and Type | Field and Description |
---|---|
short |
op
the comparison operator
valid values are defined in
Op |
AttributeValue |
value
the comparison value
|
Constructor and Description |
---|
AttributeConstraint(AttributeConstraint c)
creates a (deep) copy of an attribute constraint
|
AttributeConstraint(AttributeValue v)
create an equality constraint with the given value
|
AttributeConstraint(short o,
AttributeValue x)
create a constraint with the given value
|
AttributeConstraint(short o,
boolean b)
create a constraint with the given boolean value
|
AttributeConstraint(short o,
byte[] s)
create a constraint with the given byte[] value
|
AttributeConstraint(short o,
double d)
create a constraint with the given long value
|
AttributeConstraint(short o,
int i)
create a constraint with the given int value
|
AttributeConstraint(short o,
long i)
create a constraint with the given long value
|
AttributeConstraint(short o,
java.lang.String s)
create a constraint with the given string value
|
Modifier and Type | Method and Description |
---|---|
int |
hashCode() |
boolean |
isEqualTo(AttributeConstraint x) |
java.lang.String |
toString() |
public AttributeValue value
public short op
Op
public AttributeConstraint(AttributeConstraint c)
public AttributeConstraint(AttributeValue v)
public AttributeConstraint(short o, java.lang.String s)
public AttributeConstraint(short o, byte[] s)
public AttributeConstraint(short o, int i)
public AttributeConstraint(short o, long i)
public AttributeConstraint(short o, double d)
public AttributeConstraint(short o, boolean b)
public AttributeConstraint(short o, AttributeValue x)
public boolean isEqualTo(AttributeConstraint x)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga