|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.api.mo.AbstractDataTransferObject org.kuali.rice.kew.api.document.search.DocumentSearchResult
public final class DocumentSearchResult
An immutable data transfer object implementation of the DocumentSearchResultContract
. Instances of this
class should be constructed using the nested DocumentSearchResult.Builder
class.
Nested Class Summary | |
---|---|
static class |
DocumentSearchResult.Builder
A builder which can be used to construct DocumentSearchResult instances. |
Method Summary | |
---|---|
Document |
getDocument()
Returns the document represented by this result. |
List<DocumentAttribute> |
getDocumentAttributeByName(String attributeName)
Returns an unmodifiable list of all document attributes on this result which have the given name. |
List<DocumentAttribute> |
getDocumentAttributes()
Returns an unmodifiable list of objects implementing the DocumentAttributeContract interface. |
DocumentAttribute |
getSingleDocumentAttributeByName(String attributeName)
Returns a single document attribute from this result which has the given name. |
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 |
---|
public Document 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> 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 List<DocumentAttribute> getDocumentAttributeByName(String attributeName)
attributeName
- the attribute name of document attributes to retrieve
public DocumentAttribute getSingleDocumentAttributeByName(String attributeName)
attributeName
- the attribute name of the document attribute to retrieve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |