public static final class RuleValidationContext.Builder extends Object implements Serializable, ModelBuilder, RuleValidationContextContract
RuleValidationContext
instances. Enforces the constraints of the RuleValidationContextContract
.Modifier and Type | Method and Description |
---|---|
RuleValidationContext |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static RuleValidationContext.Builder |
create(RuleContract rule) |
static RuleValidationContext.Builder |
create(RuleContract rule,
RuleDelegationContract ruleDelegation,
String ruleAuthorPrincipalId)
Construct a RuleValidationContext under which to validate a rule.
|
static RuleValidationContext.Builder |
create(RuleValidationContextContract contract) |
Rule.Builder |
getRule()
Retrieve the rule which is being validated.
|
String |
getRuleAuthorPrincipalId()
Retrieve the principal of the rule author.
|
RuleDelegation.Builder |
getRuleDelegation()
Retrieve the RuleDelegation representing the parent of the rule being validated.
|
void |
setRule(Rule.Builder rule) |
void |
setRuleAuthorPrincipalId(String ruleAuthorPrincipalId) |
void |
setRuleDelegation(RuleDelegation.Builder ruleDelegation) |
public static RuleValidationContext.Builder create(RuleContract rule)
public static RuleValidationContext.Builder create(RuleValidationContextContract contract)
public static RuleValidationContext.Builder create(RuleContract rule, RuleDelegationContract ruleDelegation, String ruleAuthorPrincipalId)
null
given the circumstances defined in the description of this class.public RuleValidationContext build()
ModelBuilder
build
in interface ModelBuilder
public Rule.Builder getRule()
RuleValidationContextContract
getRule
in interface RuleValidationContextContract
public RuleDelegation.Builder getRuleDelegation()
RuleValidationContextContract
getRuleDelegation
in interface RuleValidationContextContract
public String getRuleAuthorPrincipalId()
RuleValidationContextContract
getRuleAuthorPrincipalId
in interface RuleValidationContextContract
public void setRule(Rule.Builder rule)
public void setRuleDelegation(RuleDelegation.Builder ruleDelegation)
public void setRuleAuthorPrincipalId(String ruleAuthorPrincipalId)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.