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

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

public static final class DocumentContent.Builder
extends Object
implements Serializable, ModelBuilder, DocumentContentContract

A builder which can be used to construct DocumentContent instances. Enforces the constraints of the DocumentContentContract.

See Also:
Serialized Form

Method Summary
 DocumentContent build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static DocumentContent.Builder create(DocumentContentContract contract)
           
static DocumentContent.Builder create(String documentId)
           
 String getApplicationContent()
           
 String getAttributeContent()
           
 String getDocumentId()
           
 int getFormatVersion()
           
 String getSearchableContent()
           
 void setApplicationContent(String applicationContent)
           
 void setAttributeContent(String attributeContent)
           
 void setDocumentId(String documentId)
           
 void setFormatVersion(int formatVersion)
           
 void setSearchableContent(String searchableContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static DocumentContent.Builder create(String documentId)

create

public static DocumentContent.Builder create(DocumentContentContract contract)

build

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

getDocumentId

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

getApplicationContent

public String getApplicationContent()
Specified by:
getApplicationContent in interface DocumentContentContract

getAttributeContent

public String getAttributeContent()
Specified by:
getAttributeContent in interface DocumentContentContract

getSearchableContent

public String getSearchableContent()
Specified by:
getSearchableContent in interface DocumentContentContract

getFormatVersion

public int getFormatVersion()
Specified by:
getFormatVersion in interface DocumentContentContract

setDocumentId

public void setDocumentId(String documentId)

setApplicationContent

public void setApplicationContent(String applicationContent)

setAttributeContent

public void setAttributeContent(String attributeContent)

setSearchableContent

public void setSearchableContent(String searchableContent)

setFormatVersion

public void setFormatVersion(int formatVersion)


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