|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.api.document.search.DocumentSearchResult.Builder
public static final class DocumentSearchResult.Builder
A builder which can be used to construct DocumentSearchResult
instances. Enforces the constraints of the
DocumentSearchResultContract
.
Method Summary | |
---|---|
DocumentSearchResult |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static DocumentSearchResult.Builder |
create(Document.Builder document)
Create a builder for the document search result and initialize it with the given document builder. |
static DocumentSearchResult.Builder |
create(DocumentSearchResultContract contract)
Creates a new builder instance initialized with copies of the properties from the given contract. |
Document.Builder |
getDocument()
Returns the document represented by this result. |
List<DocumentAttribute.AbstractBuilder<?>> |
getDocumentAttributes()
Returns an unmodifiable list of objects implementing the DocumentAttributeContract interface. |
void |
setDocument(Document.Builder document)
|
void |
setDocumentAttributes(List<DocumentAttribute.AbstractBuilder<?>> documentAttributes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentSearchResult.Builder create(Document.Builder document)
document
- the document builder with which to initialize the returned builder instance
IllegalArgumentException
- if the given document builder is nullpublic static DocumentSearchResult.Builder create(DocumentSearchResultContract contract)
contract
- the contract from which to copy properties
IllegalArgumentException
- if the given contract is nullpublic DocumentSearchResult build()
ModelBuilder
build
in interface ModelBuilder
public Document.Builder getDocument()
DocumentSearchResultContract
DocumentContract
with the exception of document variables
. Even if a document has variables
defined they will not be included on the document returned from this method.
getDocument
in interface DocumentSearchResultContract
public List<DocumentAttribute.AbstractBuilder<?>> getDocumentAttributes()
DocumentSearchResultContract
DocumentAttributeContract
interface. These
define the various document attributes that have been indexed for the document represented by this result.
getDocumentAttributes
in interface DocumentSearchResultContract
public void setDocument(Document.Builder document)
public void setDocumentAttributes(List<DocumentAttribute.AbstractBuilder<?>> documentAttributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |