|
||||||||||
| 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
public abstract class 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 Number |
lowerBound
The lower bound of a range condition. |
protected 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(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(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(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(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(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(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 Number upperBound
protected Number lowerBound
protected NumberAdapter adapter
EAttribute.
| Method Detail |
|---|
public boolean isSatisfied(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(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(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(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(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(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, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||