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