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

java.lang.Object
  extended by org.kuali.rice.kew.api.rule.RuleTemplate.Builder
All Implemented Interfaces:
Serializable, GloballyUnique, Identifiable, Versioned, ModelBuilder, RuleTemplateContract
Enclosing class:
RuleTemplate

public static final class RuleTemplate.Builder
extends Object
implements Serializable, ModelBuilder, RuleTemplateContract

A builder which can be used to construct RuleTemplate instances. Enforces the constraints of the RuleTemplateContract.

See Also:
Serialized Form

Method Summary
 RuleTemplate build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RuleTemplate.Builder create()
           
static RuleTemplate.Builder create(RuleTemplateContract contract)
           
 RuleTemplate.Builder getDelegationTemplate()
           
 String getDescription()
           
 String getId()
          The unique identifier for an object.
 String getName()
           
 String getObjectId()
          Return the globally unique object id of this object.
 List<RuleTemplateAttribute.Builder> getRuleTemplateAttributes()
           
 List<RuleTemplateOption.Builder> getRuleTemplateOptions()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setDelegationTemplate(RuleTemplate.Builder delegationTemplate)
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setName(String name)
           
 void setObjectId(String objectId)
           
 void setRuleTemplateAttributes(List<RuleTemplateAttribute.Builder> ruleTemplateAttributes)
           
 void setRuleTemplateOptions(List<RuleTemplateOption.Builder> ruleTemplateOptions)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static RuleTemplate.Builder create()

create

public static RuleTemplate.Builder create(RuleTemplateContract contract)

build

public RuleTemplate 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

getName

public String getName()
Specified by:
getName in interface RuleTemplateContract

getDescription

public String getDescription()
Specified by:
getDescription in interface RuleTemplateContract

getDelegationTemplate

public RuleTemplate.Builder getDelegationTemplate()
Specified by:
getDelegationTemplate in interface RuleTemplateContract

getRuleTemplateAttributes

public List<RuleTemplateAttribute.Builder> getRuleTemplateAttributes()
Specified by:
getRuleTemplateAttributes in interface RuleTemplateContract

getRuleTemplateOptions

public List<RuleTemplateOption.Builder> getRuleTemplateOptions()
Specified by:
getRuleTemplateOptions in interface RuleTemplateContract

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

getObjectId

public String getObjectId()
Description copied from interface: GloballyUnique
Return the globally unique object id of this object. In general, this value should only be null if the object has not yet been stored to a persistent data store.

Specified by:
getObjectId in interface GloballyUnique
Returns:
the objectId of this object, or null if it has not been set yet

setName

public void setName(String name)

setDescription

public void setDescription(String description)

setDelegationTemplate

public void setDelegationTemplate(RuleTemplate.Builder delegationTemplate)

setRuleTemplateAttributes

public void setRuleTemplateAttributes(List<RuleTemplateAttribute.Builder> ruleTemplateAttributes)

setRuleTemplateOptions

public void setRuleTemplateOptions(List<RuleTemplateOption.Builder> ruleTemplateOptions)

setId

public void setId(String id)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)


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