public class Rule extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Rule.Action |
Provides a list of valid rule return values.
|
static class |
Rule.Deserializer |
Provides a custom de-serialization implementation for rules which permits the dynamic
application of various types of conditions within the object body.
|
| Constructor | Description |
|---|---|
Rule(Rule.Action action,
Set<RuleCondition> conditions) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
|
Rule.Action |
evaluate(ResolverContext ctx) |
Evaluates the result of this rule and thus whether or not the respective value it is attached
to is to be included.
|
Rule.Action |
getAction() |
|
Set<RuleCondition> |
getConditions() |
|
int |
hashCode() |
public Rule(@NonNull
Rule.Action action,
@NonNull
Set<RuleCondition> conditions)
public Rule.Action evaluate(@NonNull ResolverContext ctx)
ctx - a context.Rule.Action.ALLOW when inclusion is expected, Rule.Action.DISALLOW otherwise.@NonNull public Rule.Action getAction()
@NonNull public Set<RuleCondition> getConditions()
Copyright © 2018 Basin. All rights reserved.