org.kuali.rice.kew.api.document.node
Class RouteNodeInstance.Builder
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 © 2005–2014 The Kuali Foundation. All rights reserved.