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()
ModelBuilderbuild in interface ModelBuilderpublic Rule.Builder getRule()
RuleValidationContextContractgetRule in interface RuleValidationContextContractpublic RuleDelegation.Builder getRuleDelegation()
RuleValidationContextContractgetRuleDelegation in interface RuleValidationContextContractpublic String getRuleAuthorPrincipalId()
RuleValidationContextContractgetRuleAuthorPrincipalId in interface RuleValidationContextContractpublic 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.