|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.api.validation.RuleValidationContext.Builder
public static final class RuleValidationContext.Builder
A builder which can be used to construct RuleValidationContext
instances. Enforces the constraints of the RuleValidationContextContract
.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |