com.ibm.xtools.emf.query.conditions.strings
Class StringCondition
java.lang.Object
com.ibm.xtools.emf.query.conditions.Condition
com.ibm.xtools.emf.query.conditions.strings.StringCondition
- Direct Known Subclasses:
- StringLength, StringValue
- public abstract class StringCondition
- extends Condition
An abstract Condition
object that tests for
String related values. The arguments being evaluated
are adapted to a String first using a StringAdapter
and then subjected to evaluation
Constructor Summary |
protected |
StringCondition(StringAdapter adapter)
Constructs this StringCondition with a
StringAdapter adapter to adapt argument objects to
String objects in order to do the evaluation |
Method Summary |
boolean |
isSatisfied(Object object)
This operation is the evaluation operation of this Condition
in regard to the argument Object. |
abstract boolean |
isSatisfied(String str)
An abstract method that answers whether the argument string satisfies
this StringCondition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringCondition
protected StringCondition(StringAdapter adapter)
- Constructs this
StringCondition
with a
StringAdapter
adapter to adapt argument objects to
String objects in order to do the evaluation
- Parameters:
adapter
- The StringAdapter
to use to extract a String representation
of the argument object when evaluating it.
isSatisfied
public boolean isSatisfied(Object object)
- Description copied from class:
Condition
- This operation is the evaluation operation of this
Condition
in regard to the argument Object. In other words, the operation answers
whether the argument Object satisfied this Condition
or
not.
- Specified by:
isSatisfied
in class Condition
- Parameters:
object
- an Object to check if it satisfies this Condition
- Returns:
true
if the argument Object satisfies this
Condition
,false
otherwise.
isSatisfied
public abstract boolean isSatisfied(String str)
- An abstract method that answers whether the argument string satisfies
this
StringCondition
- Parameters:
str
- The String to evaluate
- Returns:
- boolean
true
if the argument string satisfies this StringCondition
, false
otherwise
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.