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

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

public static final class RuleTemplateAttribute.Builder
extends Object
implements Serializable, ModelBuilder, RuleTemplateAttributeContract

A builder which can be used to construct RuleTemplateAttribute instances. Enforces the constraints of the RuleTemplateAttributeContract.

See Also:
Serialized Form

Method Summary
 RuleTemplateAttribute build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RuleTemplateAttribute.Builder create(RuleTemplateAttributeContract contract)
           
static RuleTemplateAttribute.Builder create(String ruleTemplateId, ExtensionDefinition.Builder ruleAttribute, boolean required, Integer displayOrder)
           
 String getDefaultValue()
           
 Integer getDisplayOrder()
           
 String getId()
          The unique identifier for an object.
 String getObjectId()
          Return the globally unique object id of this object.
 ExtensionDefinition.Builder getRuleAttribute()
           
 Map<String,String> getRuleExtensionMap()
           
 String getRuleTemplateId()
           
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 boolean isRequired()
           
 void setActive(boolean active)
           
 void setDefaultValue(String defaultValue)
           
 void setDisplayOrder(Integer displayOrder)
           
 void setId(String id)
           
 void setObjectId(String objectId)
           
 void setRequired(boolean required)
           
 void setRuleAttribute(ExtensionDefinition.Builder ruleAttribute)
           
 void setRuleExtensionMap(Map<String,String> ruleExtensionMap)
           
 void setRuleTemplateId(String ruleTemplateId)
           
 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 RuleTemplateAttribute.Builder create(String ruleTemplateId,
                                                   ExtensionDefinition.Builder ruleAttribute,
                                                   boolean required,
                                                   Integer displayOrder)

create

public static RuleTemplateAttribute.Builder create(RuleTemplateAttributeContract contract)

build

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

getDefaultValue

public String getDefaultValue()
Specified by:
getDefaultValue in interface RuleTemplateAttributeContract

getRuleTemplateId

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

isRequired

public boolean isRequired()
Specified by:
isRequired in interface RuleTemplateAttributeContract

getDisplayOrder

public Integer getDisplayOrder()
Specified by:
getDisplayOrder in interface RuleTemplateAttributeContract

getRuleAttribute

public ExtensionDefinition.Builder getRuleAttribute()
Specified by:
getRuleAttribute in interface RuleTemplateAttributeContract

getRuleExtensionMap

public Map<String,String> getRuleExtensionMap()
Specified by:
getRuleExtensionMap in interface RuleTemplateAttributeContract

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

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

setDefaultValue

public void setDefaultValue(String defaultValue)

setRuleTemplateId

public void setRuleTemplateId(String ruleTemplateId)

setRequired

public void setRequired(boolean required)

setDisplayOrder

public void setDisplayOrder(Integer displayOrder)

setRuleAttribute

public void setRuleAttribute(ExtensionDefinition.Builder ruleAttribute)

setRuleExtensionMap

public void setRuleExtensionMap(Map<String,String> ruleExtensionMap)

setId

public void setId(String id)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)

setActive

public void setActive(boolean active)


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