de.cau.cs.kieler.karma
Class AnnotationCondition

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

public class AnnotationCondition
extends ICustomCondition<EObject>

Condition that works on annotations.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.karma.ICustomCondition
key, value
 
Constructor Summary
AnnotationCondition()
           
 
Method Summary
 boolean evaluate(EObject object)
          Evaluate this condition on the given object.
 void initialize(String thekey, String thevalue)
          Feed the condition with some initial values because extension points support only the standard constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationCondition

public AnnotationCondition()
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

initialize

public void initialize(String thekey,
                       String thevalue)
Feed the condition with some initial values because extension points support only the standard constructor.

Overrides:
initialize in class ICustomCondition<EObject>
Parameters:
thekey - a key for referencing something.
thevalue - the value the condition could evaluate for.