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

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

public static final class RuleTemplateOption.Builder
extends Object
implements Serializable, ModelBuilder, RuleTemplateOptionContract

A builder which can be used to construct RuleTemplateOption instances. Enforces the constraints of the RuleTemplateOptionContract.

See Also:
Serialized Form

Method Summary
 RuleTemplateOption build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RuleTemplateOption.Builder create()
           
static RuleTemplateOption.Builder create(RuleTemplateOptionContract contract)
           
 String getCode()
           
 String getId()
          The unique identifier for an object.
 String getRuleTemplateId()
           
 String getValue()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setCode(String code)
           
 void setId(String id)
           
 void setRuleTemplateId(String ruleTemplateId)
           
 void setValue(String value)
           
 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 RuleTemplateOption.Builder create()

create

public static RuleTemplateOption.Builder create(RuleTemplateOptionContract contract)

build

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

getValue

public String getValue()
Specified by:
getValue in interface RuleTemplateOptionContract

getRuleTemplateId

public String getRuleTemplateId()
Specified by:
getRuleTemplateId in interface RuleTemplateOptionContract

getCode

public String getCode()
Specified by:
getCode in interface RuleTemplateOptionContract

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

setValue

public void setValue(String value)

setRuleTemplateId

public void setRuleTemplateId(String ruleTemplateId)

setCode

public void setCode(String code)

setId

public void setId(String id)

setVersionNumber

public void setVersionNumber(Long versionNumber)


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