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

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

public static final class RuleExtension.Builder
extends Object
implements Serializable, ModelBuilder, RuleExtensionContract

A builder which can be used to construct RuleExtension instances. Enforces the constraints of the RuleExtensionContract.

See Also:
Serialized Form

Method Summary
 RuleExtension build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RuleExtension.Builder create(RuleExtensionContract contract)
           
static RuleExtension.Builder create(RuleTemplateAttribute.Builder ruleTemplateAttribute)
           
 Map<String,String> getExtensionValuesMap()
           
 RuleTemplateAttribute.Builder getRuleTemplateAttribute()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setExtensionValuesMap(Map<String,String> extensionValuesMap)
           
 void setRuleTemplateAttribute(RuleTemplateAttribute.Builder ruleTemplateAttribute)
           
 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 RuleExtension.Builder create(RuleTemplateAttribute.Builder ruleTemplateAttribute)

create

public static RuleExtension.Builder create(RuleExtensionContract contract)

build

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

getRuleTemplateAttribute

public RuleTemplateAttribute.Builder getRuleTemplateAttribute()
Specified by:
getRuleTemplateAttribute in interface RuleExtensionContract

getExtensionValuesMap

public Map<String,String> getExtensionValuesMap()
Specified by:
getExtensionValuesMap in interface RuleExtensionContract

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

setRuleTemplateAttribute

public void setRuleTemplateAttribute(RuleTemplateAttribute.Builder ruleTemplateAttribute)

setExtensionValuesMap

public void setExtensionValuesMap(Map<String,String> extensionValuesMap)

setVersionNumber

public void setVersionNumber(Long versionNumber)


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