org.daisy.dotify.api.formatter.Condition Maven / Gradle / Ivy
package org.daisy.dotify.api.formatter;
/**
* Provides an interface for a condition.
*
* @author Joel Håkansson
*/
public interface Condition {
/**
* Evaluates the condition without supplying any variables.
*
* @return returns the evaluation result
*/
public boolean evaluate();
/**
* Evaluates the condition in the supplied context.
*
* @param context the context
* @return returns the evaluation result
*/
public boolean evaluate(Context context);
}