public abstract class GraphRule extends Object implements org.ocpsoft.rewrite.config.Rule, org.ocpsoft.rewrite.context.Context
Rule implementations that operate on GraphRewrite events.| Constructor and Description |
|---|
GraphRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
abstract boolean |
evaluate(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context)
Evaluate this rule against the given
GraphRewrite event. |
boolean |
evaluate(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context) |
Object |
get(Object key) |
abstract void |
perform(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context)
Perform the
Operation. |
void |
perform(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context) |
void |
put(Object key,
Object value) |
public abstract boolean evaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
GraphRewrite event. If this condition does not apply to the given
event, it must return false. If the condition applies and is satisfied, return true.public abstract void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
Operation.public boolean containsKey(Object key)
containsKey in interface org.ocpsoft.rewrite.context.Contextpublic void put(Object key, Object value)
put in interface org.ocpsoft.rewrite.context.Contextpublic Object get(Object key)
get in interface org.ocpsoft.rewrite.context.Contextpublic void clear()
clear in interface org.ocpsoft.rewrite.context.Contextpublic final boolean evaluate(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context)
evaluate in interface org.ocpsoft.rewrite.config.Conditionpublic final void perform(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context)
perform in interface org.ocpsoft.rewrite.config.OperationCopyright © 2021 JBoss by Red Hat. All rights reserved.