org.kuali.rice.kew.api.document
Class DocumentDetail.Builder
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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-2014 The Kuali Foundation. All Rights Reserved.