|
Siena (v.1.5.5) API documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectsiena.AttributeConstraint
public class AttributeConstraint
an elementary predicate over an attribute in an event notification.
AttributeConstraints 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.
Op,
Filter| Field Summary | |
|---|---|
short |
op
the comparison operator valid values are defined in Op |
AttributeValue |
value
the comparison value |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
int |
hashCode()
|
boolean |
isEqualTo(AttributeConstraint x)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public AttributeValue value
public short op
Op
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public boolean isEqualTo(AttributeConstraint x)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
Siena (v.1.5.5) API documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||