org.kuali.rice.kew.api.rule
Class RuleDelegation.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.rule.RuleDelegation.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, RuleDelegationContract
Enclosing class:
RuleDelegation

public static final class RuleDelegation.Builder
extends Object
implements Serializable, ModelBuilder, RuleDelegationContract

A builder which can be used to construct RuleDelegation instances. Enforces the constraints of the RuleDelegationContract.

See Also:
Serialized Form

Method Summary
 RuleDelegation build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RuleDelegation.Builder create()
           
static RuleDelegation.Builder create(RuleDelegationContract contract)
           
 Rule.Builder getDelegationRule()
          rule associated with the RuleDelegation
 DelegationType getDelegationType()
          type of delegation for the RuleDelegation
 void setDelegationRule(Rule.Builder delegationRule)
           
 void setDelegationType(DelegationType delegationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static RuleDelegation.Builder create()

create

public static RuleDelegation.Builder create(RuleDelegationContract contract)

build

public RuleDelegation build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getDelegationType

public DelegationType getDelegationType()
Description copied from interface: RuleDelegationContract
type of delegation for the RuleDelegation

Determines what kind of delegation the RuleDelegation is

Specified by:
getDelegationType in interface RuleDelegationContract
Returns:
delegationType

getDelegationRule

public Rule.Builder getDelegationRule()
Description copied from interface: RuleDelegationContract
rule associated with the RuleDelegation

This rule is run for the original rule as the delegate

Specified by:
getDelegationRule in interface RuleDelegationContract
Returns:
delegationRule

setDelegationType

public void setDelegationType(DelegationType delegationType)

setDelegationRule

public void setDelegationRule(Rule.Builder delegationRule)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.