de.cau.cs.kieler.karma
Class AnnotationExistsCondition

java.lang.Object
  extended by de.cau.cs.kieler.karma.ICustomCondition<EObject>
      extended by de.cau.cs.kieler.karma.AnnotationExistsCondition
All Implemented Interfaces:
ICondition<EObject>

public class AnnotationExistsCondition
extends ICustomCondition<EObject>

This condition is true if the annotation identified by the key exists in a given EObject.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.karma.ICustomCondition
key, value
 
Constructor Summary
AnnotationExistsCondition()
           
 
Method Summary
 boolean evaluate(EObject object)
          Evaluate this condition on the given object.
 
Methods inherited from class de.cau.cs.kieler.karma.ICustomCondition
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationExistsCondition

public AnnotationExistsCondition()
Method Detail

evaluate

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

Parameters:
object - a target object
Returns:
true if the condition is met for the object