de.cau.cs.kieler.karma
Class ICustomCondition<T>

java.lang.Object
  extended by de.cau.cs.kieler.karma.ICustomCondition<T>
Type Parameters:
T - the type for which the condition is used
All Implemented Interfaces:
ICondition<T>
Direct Known Subclasses:
AnnotationCondition, AnnotationExistsCondition, ConnectionSourceCondition, HasCommentsCondition, IEditPartSensitiveCondition, NoPortsCondition, PortsCondition, RecursiveAnnotationCondition, TrueCondition

public abstract class ICustomCondition<T>
extends Object
implements ICondition<T>

Interface for conditions that can be used with an extension point.

Rating red

Field Summary
protected  String key
          Key for referencing the annotation.
protected  String value
          Desired value of the annotation.
 
Constructor Summary
ICustomCondition()
           
 
Method Summary
 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
 
Methods inherited from interface de.cau.cs.kieler.core.util.ICondition
evaluate
 

Field Detail

key

protected String key
Key for referencing the annotation.


value

protected String value
Desired value of the annotation.

Constructor Detail

ICustomCondition

public ICustomCondition()
Method Detail

initialize

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

Parameters:
thekey - a key for referencing something.
thevalue - the value the condition could evaluate for.