org.kuali.rice.kew.api.document
Class DocumentDetail.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.document.DocumentDetail.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, DocumentDetailContract
Enclosing class:
DocumentDetail

public static final class DocumentDetail.Builder
extends Object
implements Serializable, ModelBuilder, DocumentDetailContract

A builder which can be used to construct DocumentDetail instances. Enforces the constraints of the DocumentDetailContract.

See Also:
Serialized Form

Method Summary
 DocumentDetail build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static DocumentDetail.Builder create(Document document)
           
static DocumentDetail.Builder create(DocumentDetailContract contract)
           
 List<ActionRequest> getActionRequests()
           
 List<ActionTaken> getActionsTaken()
           
 Document getDocument()
           
 List<RouteNodeInstance> getRouteNodeInstances()
           
 void setActionRequests(List<ActionRequest> actionRequests)
           
 void setActionsTaken(List<ActionTaken> actionsTaken)
           
 void setDocument(Document document)
           
 void setRouteNodeInstances(List<RouteNodeInstance> routeNodeInstances)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static DocumentDetail.Builder create(Document document)

create

public static DocumentDetail.Builder create(DocumentDetailContract contract)

build

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

getDocument

public Document getDocument()
Specified by:
getDocument in interface DocumentDetailContract

getActionRequests

public List<ActionRequest> getActionRequests()
Specified by:
getActionRequests in interface DocumentDetailContract

getActionsTaken

public List<ActionTaken> getActionsTaken()
Specified by:
getActionsTaken in interface DocumentDetailContract

getRouteNodeInstances

public List<RouteNodeInstance> getRouteNodeInstances()
Specified by:
getRouteNodeInstances in interface DocumentDetailContract

setDocument

public void setDocument(Document document)

setActionRequests

public void setActionRequests(List<ActionRequest> actionRequests)

setActionsTaken

public void setActionsTaken(List<ActionTaken> actionsTaken)

setRouteNodeInstances

public void setRouteNodeInstances(List<RouteNodeInstance> routeNodeInstances)


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