- get(Object) - Method in class com.deliveredtechnologies.rulebook.FactMap
-
- getAnnotatedField(Class, Class) - Static method in class com.deliveredtechnologies.rulebook.util.AnnotationUtils
-
Method getAnnotatedField gets the first annotated field of the type of annotation specified.
- getAnnotatedFields(Class, Class) - Static method in class com.deliveredtechnologies.rulebook.util.AnnotationUtils
-
Method getAnnotatedFields gets the fields annotated of a specific type from the class and its parent classes.
- getAnnotatedMethod(Class, Class) - Static method in class com.deliveredtechnologies.rulebook.util.AnnotationUtils
-
Method getAnnotatedMethod the first annotated method of the type of annotation specified.
- getAnnotatedMethods(Class, Class) - Static method in class com.deliveredtechnologies.rulebook.util.AnnotationUtils
-
Method getAnnotatedMethods gets the methods annotated of a specific type from the class and its parent
classes.
The List is in order of closest parent => current obj methods, parent obj methods, etc.
- getAnnotation(Class<A>, Class<?>) - Static method in class com.deliveredtechnologies.rulebook.util.AnnotationUtils
-
Method getAnnotation returns the annotation on a class or its parent annotation.
- getDblVal(String) - Method in class com.deliveredtechnologies.rulebook.FactMap
-
Method getDblVal() gets the Double value of a Fact in the FactMap.
- getFactMap() - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The getFactMap() method gets the FactMap used for the current Rule.
- getFactMap() - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- getFactMap() - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
- getFactMap() - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
- getIntVal(String) - Method in class com.deliveredtechnologies.rulebook.FactMap
-
Method getIntVal() gets the Integer value of a Fact in the FactMap.
- getName() - Method in class com.deliveredtechnologies.rulebook.Fact
-
The method getName() gets the name of the Fact.
- getOne() - Method in class com.deliveredtechnologies.rulebook.FactMap
-
The method getOne() gets the value of the single Fact in the FactMap.
- getResult() - Method in interface com.deliveredtechnologies.rulebook.Decision
-
The getResult() method returns the stored result from the Decision
The value may be null.
- getResult() - Method in class com.deliveredtechnologies.rulebook.DecisionBook
-
The getResult() method allows the result of the DecisionBook rules execution to be retrieved.
- getResult() - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- getResult() - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The getResult() method gets the stored Result value from the execution of the StandardDecision.
- getStrVal(String) - Method in class com.deliveredtechnologies.rulebook.FactMap
-
Method getStrVal() gets the String value of a Fact in the FactMap.
- getThen() - Method in interface com.deliveredtechnologies.rulebook.Rule
-
Method getThen() gets the instance(s) of the functional interface(s) responsible for the action to be performed by
the Rule.
- getThen() - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- getThen() - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The getThen() method returns a List of Consumer objects that combined
together in sequence represent the then() action(s).
- getThen() - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The getThen() method returns a List of Consumer objects that combined
together in sequence represent the then() action(s).
- getValue() - Method in class com.deliveredtechnologies.rulebook.Fact
-
The method getValue() gets the value of the Fact.
- getValue(String) - Method in class com.deliveredtechnologies.rulebook.FactMap
-
The method getValue() returns the value of the Fact associated with the name passed in.
- getValue() - Method in class com.deliveredtechnologies.rulebook.Result
-
The method getValue() returns the object contained in the Result object.
- getWhen() - Method in interface com.deliveredtechnologies.rulebook.Rule
-
Method getWhen() gets the Predicate that evaluates the condition of the Rule.
- getWhen() - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- getWhen() - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The getWhen() method returns the Predicate to be used for the condition of the Rule.
- getWhen() - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The getWhen() method returns the Predicate to be used for the condition of the Rule.
- Given - Annotation Type in com.deliveredtechnologies.rulebook.annotation
-
Given defines a field that is hydrated from a
Fact.
- given(String, T) - Method in interface com.deliveredtechnologies.rulebook.Decision
-
- given(Fact<T>...) - Method in interface com.deliveredtechnologies.rulebook.Decision
-
- given(List<Fact<T>>) - Method in interface com.deliveredtechnologies.rulebook.Decision
-
- given(FactMap<T>) - Method in interface com.deliveredtechnologies.rulebook.Decision
-
- given(String, T) - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The given() method sets the Facts to be used by the Rule.
- given(Fact<T>...) - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The given() method sets the Facts to be used by the Rule.
- given(List<Fact<T>>) - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The given() method sets the Facts to be used by the Rule.
- given(FactMap<T>) - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The given() method sets the Facts to be used by the Rule.
- given(Fact<T>...) - Method in class com.deliveredtechnologies.rulebook.RuleBook
-
The given() method accepts the Facts for this RuleBook.
- given(String, T) - Method in class com.deliveredtechnologies.rulebook.RuleBook
-
The given() method accepts a key/value pair as a Fact for this RuleBook.
- given(Fact...) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- given(List) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- given(FactMap) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- given(String, Object) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- given(String, T) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The given() method accepts a name/value pair to be used as a Fact.
- given(Fact<T>...) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The given() method accepts Facts for the StandardDecision.
- given(List<Fact<T>>) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The given() method accepts Facts for the StandardDecision.
- given(FactMap<T>) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The given() method accepts Facts for the StandardDecision.
- given(String, T) - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The given() method accepts a name/value pair to be used as a Fact.
- given(Fact<T>...) - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The given() method accepts Facts to be evaluated in the Rule.
- given(List<Fact<T>>) - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The given() method accepts Facts to be evaluated in the Rule.
- given(FactMap<T>) - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The given() method accepts Facts to be evaluated in the Rule.
- givenUnTyped(FactMap) - Method in interface com.deliveredtechnologies.rulebook.Decision
-
- givenUnTyped(FactMap) - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The givenUnTyped method sets an untyped FactMap.
- givenUnTyped(FactMap) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- givenUnTyped(FactMap) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
- givenUnTyped(FactMap) - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
- remove(Object) - Method in class com.deliveredtechnologies.rulebook.FactMap
-
- Result - Annotation Type in com.deliveredtechnologies.rulebook.annotation
-
Result is used to map a single field to a Result in a
Decision.
- Result<T> - Class in com.deliveredtechnologies.rulebook
-
This is a wrapper class for the actual result.
- Result() - Constructor for class com.deliveredtechnologies.rulebook.Result
-
- Result(T) - Constructor for class com.deliveredtechnologies.rulebook.Result
-
- Rule - Annotation Type in com.deliveredtechnologies.rulebook.annotation
-
Rule defines a class to be injected into a
Decision.
- Rule<T> - Interface in com.deliveredtechnologies.rulebook
-
Rule is an interface that uses the following format:
rule.given(facts).when(some condition given facts).then(do something)
- RuleAdapter - Class in com.deliveredtechnologies.rulebook.runner
-
RuleAdapter accepts a POJO annotated Rule class and adapts it to an actual Rule class.
- RuleAdapter(Object, Rule) - Constructor for class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- RuleAdapter(Object) - Constructor for class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- RuleBook<T> - Class in com.deliveredtechnologies.rulebook
-
RuleBook is an abstract class that follows the Template Method design pattern, leaving the defineRules() method
implementation for subclasses.
- RuleBook() - Constructor for class com.deliveredtechnologies.rulebook.RuleBook
-
- RuleBookRunner - Class in com.deliveredtechnologies.rulebook.runner
-
RuleBookRunner creates a RuleBook from a package containing
Rule annotated POJOs.
- RuleBookRunner(String) - Constructor for class com.deliveredtechnologies.rulebook.runner.RuleBookRunner
-
- RuleState - Enum in com.deliveredtechnologies.rulebook
-
Enumeration for whether the continue the rule chain or break it.
- run(Object...) - Method in interface com.deliveredtechnologies.rulebook.Rule
-
This run() method allows for arguments in addition to the FactMap to be passed to the action(s).
- run() - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The run() method evaluates the Rule.
- run() - Method in class com.deliveredtechnologies.rulebook.RuleBook
-
The run() method adds the rules [via defineRules()] and runs the rules as long as at least one rule was
added.
- run(Object...) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- run(Object...) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The run() method runs the Predicate supplied by the when() method.
If it evaluates to true then the BiConsumer(s) and Consumer(s) supplied by the then() method(s)
are executed.
If the stop() method was invoked then no further rules are evaluated.
Otherwise, the next rule in the chain is evaluated.
- run(Object...) - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The run(Object[]) method runs the Predicate supplied by the when() method.
- setName(String) - Method in class com.deliveredtechnologies.rulebook.Fact
-
The method setName() sets the name of the Fact.
- setNextRule(Rule<T>) - Method in interface com.deliveredtechnologies.rulebook.Rule
-
The setNextRule method adds the next Rule to the chain.
- setNextRule(Rule) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- setNextRule(Rule<T>) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The setNextRule() method sets the next rule in the chain.
- setNextRule(Rule<T>) - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The setNextRule() method sets the next Rule in the chain.
- setResult(Result<U>) - Method in interface com.deliveredtechnologies.rulebook.Decision
-
The setResult() method initializes the stored result; useful for aggregation/chaining of a result.
- setResult(Result) - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- setResult(Result<U>) - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The setResult() method sets the stored Result.
- setValue(T) - Method in class com.deliveredtechnologies.rulebook.Fact
-
The method setValue() sets the value of the Fact.
- setValue(String, T) - Method in class com.deliveredtechnologies.rulebook.FactMap
-
The method setValue sets the value of the Fact but its name.
If no Fact exists with the associated name, a new fact is created with the specified name and value.
- setValue(T) - Method in class com.deliveredtechnologies.rulebook.Result
-
The method setValue() sets the object to be contained in the Result object.
- size() - Method in class com.deliveredtechnologies.rulebook.FactMap
-
- StandardDecision<T,U> - Class in com.deliveredtechnologies.rulebook
-
StandardDecision is the standard implementation of
Decision.
- StandardDecision(Class<T>, Class<U>) - Constructor for class com.deliveredtechnologies.rulebook.StandardDecision
-
- StandardRule<T> - Class in com.deliveredtechnologies.rulebook
-
StandardRule is a standard rule implementation that can be used with a
RuleBook.
- StandardRule() - Constructor for class com.deliveredtechnologies.rulebook.StandardRule
-
- StandardRule(Class<T>) - Constructor for class com.deliveredtechnologies.rulebook.StandardRule
-
- stop() - Method in interface com.deliveredtechnologies.rulebook.Decision
-
- stop() - Method in interface com.deliveredtechnologies.rulebook.Rule
-
Stops the rule chain after the then() method executes.
Note: this will only happen if the when() condition evaluates to true.
- stop() - Method in class com.deliveredtechnologies.rulebook.runner.RuleAdapter
-
- stop() - Method in class com.deliveredtechnologies.rulebook.StandardDecision
-
The stop() method causes the rule chain to stop if the when() condition true and only
after the then() actions have been executed.
- stop() - Method in class com.deliveredtechnologies.rulebook.StandardRule
-
The stop() method causes the rule chain to stop if the when() condition true and only
after the then() actions have been executed.