org.kuali.rice.kew.api.document
Class DocumentWithContent

java.lang.Object
  extended by org.kuali.rice.core.api.mo.AbstractDataTransferObject
      extended by org.kuali.rice.kew.api.document.DocumentWithContent
All Implemented Interfaces:
Serializable, ModelObjectBasic, ModelObjectComplete, DocumentWithContentContract

public final class DocumentWithContent
extends AbstractDataTransferObject
implements DocumentWithContentContract

Immutable implementation of the DocumentWithContentContract. This class does not have a builder since it is intended to simply be a wrapper a document and it's content.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Method Summary
static DocumentWithContent create(Document document, DocumentContent documentContent)
           
 Document getDocument()
           
 DocumentContent getDocumentContent()
           
 
Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static DocumentWithContent create(Document document,
                                         DocumentContent documentContent)

getDocument

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

getDocumentContent

public DocumentContent getDocumentContent()
Specified by:
getDocumentContent in interface DocumentWithContentContract


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