org.kuali.rice.kew.api.document.node
Class RouteNodeInstance.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.document.node.RouteNodeInstance.Builder
All Implemented Interfaces:
Serializable, Identifiable, ModelBuilder, RouteNodeInstanceContract
Enclosing class:
RouteNodeInstance

public static final class RouteNodeInstance.Builder
extends Object
implements Serializable, ModelBuilder, RouteNodeInstanceContract

A builder which can be used to construct RouteNodeInstance instances. Enforces the constraints of the RouteNodeInstanceContract.

See Also:
Serialized Form

Method Summary
 RouteNodeInstance build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RouteNodeInstance.Builder create()
           
static RouteNodeInstance.Builder create(RouteNodeInstanceContract contract)
           
 String getBranchId()
           
 String getDocumentId()
           
 String getId()
          The unique identifier for an object.
 String getName()
           
 List<RouteNodeInstance.Builder> getNextNodeInstances()
           
 String getProcessId()
           
 String getRouteNodeId()
           
 List<RouteNodeInstanceState.Builder> getState()
           
 boolean isActive()
           
 boolean isComplete()
           
 boolean isInitial()
           
 void setActive(boolean active)
           
 void setBranchId(String branchId)
           
 void setComplete(boolean complete)
           
 void setDocumentId(String documentId)
           
 void setId(String id)
           
 void setInitial(boolean initial)
           
 void setName(String name)
           
 void setNextNodeInstances(List<RouteNodeInstance.Builder> nextNodeInstances)
           
 void setProcessId(String processId)
           
 void setRouteNodeId(String routeNodeId)
           
 void setState(List<RouteNodeInstanceState.Builder> state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static RouteNodeInstance.Builder create()

create

public static RouteNodeInstance.Builder create(RouteNodeInstanceContract contract)

build

public RouteNodeInstance 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 RouteNodeInstanceContract

getState

public List<RouteNodeInstanceState.Builder> getState()
Specified by:
getState in interface RouteNodeInstanceContract

getDocumentId

public String getDocumentId()
Specified by:
getDocumentId in interface RouteNodeInstanceContract

getBranchId

public String getBranchId()
Specified by:
getBranchId in interface RouteNodeInstanceContract

getRouteNodeId

public String getRouteNodeId()
Specified by:
getRouteNodeId in interface RouteNodeInstanceContract

getProcessId

public String getProcessId()
Specified by:
getProcessId in interface RouteNodeInstanceContract

isActive

public boolean isActive()
Specified by:
isActive in interface RouteNodeInstanceContract

isComplete

public boolean isComplete()
Specified by:
isComplete in interface RouteNodeInstanceContract

isInitial

public boolean isInitial()
Specified by:
isInitial in interface RouteNodeInstanceContract

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

getNextNodeInstances

public List<RouteNodeInstance.Builder> getNextNodeInstances()
Specified by:
getNextNodeInstances in interface RouteNodeInstanceContract

setNextNodeInstances

public void setNextNodeInstances(List<RouteNodeInstance.Builder> nextNodeInstances)

setName

public void setName(String name)

setState

public void setState(List<RouteNodeInstanceState.Builder> state)

setDocumentId

public void setDocumentId(String documentId)

setBranchId

public void setBranchId(String branchId)

setRouteNodeId

public void setRouteNodeId(String routeNodeId)

setProcessId

public void setProcessId(String processId)

setActive

public void setActive(boolean active)

setComplete

public void setComplete(boolean complete)

setInitial

public void setInitial(boolean initial)

setId

public void setId(String id)


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