de.cau.cs.kieler.core.model.util
Class FeatureValueCondition

java.lang.Object
  extended by de.cau.cs.kieler.core.model.util.FeatureValueCondition
All Implemented Interfaces:
ICondition<EObject>

public class FeatureValueCondition
extends Object
implements ICondition<EObject>

A condition that evaluates a feature of an EOject.

Rating proposed yellow
(2010-01-26) msp

Constructor Summary
FeatureValueCondition(EStructuralFeature thefeature, Object thevalue)
          Creates a feature condition.
 
Method Summary
 boolean evaluate(EObject object)
          Evaluate this condition on the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureValueCondition

public FeatureValueCondition(EStructuralFeature thefeature,
                             Object thevalue)
Creates a feature condition.

Parameters:
thefeature - a structural feature
thevalue - the expected value of the feature
Method Detail

evaluate

public boolean evaluate(EObject object)
Evaluate this condition on the given object.

Specified by:
evaluate in interface ICondition<EObject>
Parameters:
object - a target object
Returns:
true if the condition is met for the object