|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.query.conditions.Condition
org.eclipse.emf.query.conditions.numbers.NumberCondition
A Condition
object that tests for numeric arguments. The
arguments being evaluated are adapted to a Number
first using
a NumberAdapter
and then compared to the initialization value
of this NumberCondition
. It evaluates to true
when the values are equal or if the value is within the range of supplied
lower-bound and upper-bound
Nested Class Summary | |
---|---|
static class |
NumberCondition.ByteValue
A subclass of NumberCondition to be used to test for byte
values Clients can either use the default implementation supplied or have
their own. |
static class |
NumberCondition.DoubleValue
A subclass of NumberCondition to be used to test for
double values Clients can either use the default implementation supplied
or have their own. |
static class |
NumberCondition.FloatValue
A subclass of NumberCondition to be used to test for float
values Clients can either use the default implementation supplied or have
their own. |
static class |
NumberCondition.IntegerValue
A subclass of NumberCondition to be used to test for
integer values Clients can either use the default implementation supplied
or have their own. |
static class |
NumberCondition.LongValue
A subclass of NumberCondition to be used to test for long
values Clients can either use the default implementation supplied or have
their own. |
static class |
NumberCondition.ShortValue
A subclass of NumberCondition to be used to test for short
values Clients can either use the default implementation supplied or have
their own. |
Field Summary | |
---|---|
protected NumberAdapter |
adapter
Adapts elements to numbers (usually according to some numeric EAttribute . |
protected java.lang.Number |
lowerBound
The lower bound of a range condition. |
protected java.lang.Number |
upperBound
The upper bound of a range condition. |
Fields inherited from class org.eclipse.emf.query.conditions.Condition |
---|
FALSE, TRUE |
Method Summary | |
---|---|
boolean |
isSatisfied(byte byteValue)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(java.lang.Byte byteNumber)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(double doubleValue)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(java.lang.Double doubleNumber)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(float floatValue)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(java.lang.Float floatNumber)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(int intValue)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(java.lang.Integer intNumber)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(long longValue)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(java.lang.Long longNumber)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(short shortValue)
Tests if the argument's value equals/in-range the initialization number(s) |
boolean |
isSatisfied(java.lang.Short shortNumber)
Tests if the argument's value equals/in-range the initialization number(s) |
Methods inherited from class org.eclipse.emf.query.conditions.Condition |
---|
AND, EQUIVALENT, IMPLIES, isSatisfied, OR, XOR |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Number upperBound
protected java.lang.Number lowerBound
protected NumberAdapter adapter
EAttribute
.
Method Detail |
public boolean isSatisfied(java.lang.Byte byteNumber)
byteNumber
- The Byte
object whose value will be used in
testing
public boolean isSatisfied(byte byteValue)
byteValue
- The byte value which will be used in testing
public boolean isSatisfied(java.lang.Double doubleNumber)
doubleNumber
- The Double
object whose value will be used in
testing
public boolean isSatisfied(double doubleValue)
doubleValue
- The double value which will be used in testing
public boolean isSatisfied(java.lang.Float floatNumber)
floatNumber
- The Float
object whose value will be used in
testing
public boolean isSatisfied(float floatValue)
floatValue
- The float value which will be used in testing
public boolean isSatisfied(java.lang.Integer intNumber)
intNumber
- The Integer
object whose value will be used in
testing
public boolean isSatisfied(int intValue)
intValue
- The int value which will be used in testing
public boolean isSatisfied(java.lang.Long longNumber)
longNumber
- The Long
object whose value will be used in
testing
public boolean isSatisfied(long longValue)
longValue
- The long value which will be used in testing
public boolean isSatisfied(java.lang.Short shortNumber)
shortNumber
- The Short
object whose value will be used in
testing
public boolean isSatisfied(short shortValue)
shortValue
- The short value which will be used in testing
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |