public abstract class TaskConditionClass extends PropertyContainerClass
Constructor and Description |
---|
TaskConditionClass(PluginContext context,
java.lang.String id,
java.lang.String name,
java.lang.String descriptionTemplate)
Constructor.
|
TaskConditionClass(PropertyContainerClassContext context,
java.lang.String name,
java.lang.String descriptionTemplate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<TypedProperty> |
createProperties()
Returns a list of the properties associated with this condition class.
|
abstract boolean |
evaluate(ConditionEvaluationContext context,
PropertyContainer values)
Performs evaluation of the condition class against a PropertyContainer of values.
|
abstract ConditionClassType |
getConditionClassType()
Returns the type of the condition class (e.g.
|
java.lang.String |
getDescriptionTemplate()
Returns the description template is a String that can be used by a user interface to generate a human-readable
description of the condition class.
|
java.lang.String |
getName() |
addSupportedProperty, evaluatePropertyConstraints, getContext, getSupportedProperties, getSupportedProperty, getType, hasSupportedProperties, setContext, setSupportedProperties, validate
public TaskConditionClass(PluginContext context, java.lang.String id, java.lang.String name, java.lang.String descriptionTemplate)
context
- the context of the plugin associated with the classid
- the ID of the condition classname
- the name of the condition classdescriptionTemplate
- a description template for the condition class. See getDescriptionTemplate
for more information.public TaskConditionClass(PropertyContainerClassContext context, java.lang.String name, java.lang.String descriptionTemplate)
context
- the context of the plugin associated with the classname
- the name of the condition classdescriptionTemplate
- a description template for the condition class. See getDescriptionTemplate
for more information.public java.lang.String getName()
public java.lang.String getDescriptionTemplate()
public abstract ConditionClassType getConditionClassType()
public abstract boolean evaluate(ConditionEvaluationContext context, PropertyContainer values)
context
- an evaluation contextvalues
- the values to use for the evaluationprotected abstract java.util.List<TypedProperty> createProperties()
Copyright © 2015 Whizzo Software LLC. All rights reserved.