public abstract class SingleRuleProvider extends AbstractRuleProvider implements org.ocpsoft.rewrite.config.Rule
RuleProvider that provides only a single Rule (itself).| Constructor and Description |
|---|
SingleRuleProvider() |
SingleRuleProvider(Class<? extends RuleProvider> implementationType,
String id) |
SingleRuleProvider(RuleProviderMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
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) |
org.ocpsoft.rewrite.config.Configuration |
getConfiguration(RuleLoaderContext ruleLoaderContext)
KEEP - The purpose of this override is to make sure that reflection (interface.getClass().getMethods())
keeps a method with the specific type.
|
String |
getId() |
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) |
enhanceRuleMetadata, equals, getExecutionIndex, getMetadata, handles, hashCode, priority, setExecutionIndex, toStringpublic SingleRuleProvider()
public SingleRuleProvider(RuleProviderMetadata metadata)
public SingleRuleProvider(Class<? extends RuleProvider> implementationType, String id)
public String getId()
getId in interface org.ocpsoft.rewrite.config.Rulepublic final org.ocpsoft.rewrite.config.Configuration getConfiguration(RuleLoaderContext ruleLoaderContext)
RuleProvidergetConfiguration in interface RuleProvidergetConfiguration in interface org.ocpsoft.rewrite.config.ConfigurationProvider<RuleLoaderContext>public boolean evaluate(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
Rule against the given 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. (Default true.)public abstract void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
Operation.public 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.