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

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

public static final class RuleExpression.Builder
extends Object
implements Serializable, ModelBuilder, RuleExpressionContract

A builder which can be used to construct RuleExpression instances. Enforces the constraints of the RuleExpressionContract.

See Also:
Serialized Form

Method Summary
 RuleExpression build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RuleExpression.Builder create()
           
static RuleExpression.Builder create(RuleExpressionContract contract)
           
 String getExpression()
           
 String getId()
          The unique identifier for an object.
 String getObjectId()
          Return the globally unique object id of this object.
 String getType()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setExpression(String expression)
           
 void setId(String id)
           
 void setObjectId(String objectId)
           
 void setType(String type)
           
 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 RuleExpression.Builder create()

create

public static RuleExpression.Builder create(RuleExpressionContract contract)

build

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

getType

public String getType()
Specified by:
getType in interface RuleExpressionContract

getExpression

public String getExpression()
Specified by:
getExpression in interface RuleExpressionContract

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

setType

public void setType(String type)

setExpression

public void setExpression(String expression)

setId

public void setId(String id)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.