public class SampleRule extends Rule
Constructor and Description |
---|
SampleRule() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
condition()
Returns a description of the condition that led to
Rule.eval() returning true |
java.lang.String |
description()
Describes what the rules does
|
boolean |
eval()
Evaluates the condition.
|
java.lang.String |
name()
Returns the name of the rule.
|
void |
trigger()
The action of the rule.
|
public java.lang.String name()
Rule
public java.lang.String description()
Rule
description
in class Rule
public boolean eval()
Rule
Rule.condition()
should return a non-null stringpublic java.lang.String condition()
Rule
Rule.eval()
returning truepublic void trigger() throws java.lang.Throwable
Rule
Rule.eval()
returned trueCopyright © 1998-2020 Red Hat. All Rights Reserved.