@CompileStatic interface EnforcerRule
Base type for enforcer rules.
| Type | Name and description |
|---|---|
Property<EnforcerLevel> |
enforcerLevel |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract void |
execute(EnforcerContext context)Executes this rule with the given context. |
|
abstract Property<Boolean> |
getEnabled()Whether rule behavior is enabled or not. |
|
abstract Property<EnforcerLevel> |
getEnforcerLevel() |
|
abstract void |
setEnforcerLevel(String level) |
|
abstract void |
validate(EnforcerContext context)Validates this rule with the given context. |
Executes this rule with the given context.
context - the context for this rule.Validates this rule with the given context.
context - the context for this rule.