public final class DocumentSearchResult extends AbstractDataTransferObject implements DocumentSearchResultContract
DocumentSearchResultContract. Instances of this
class should be constructed using the nested DocumentSearchResult.Builder class.| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentSearchResult.Builder
A builder which can be used to construct
DocumentSearchResult instances. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toStringpublic Document getDocument()
DocumentSearchResultContractDocumentContract 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 DocumentSearchResultContractpublic List<DocumentAttribute> getDocumentAttributes()
DocumentSearchResultContractDocumentAttributeContract interface. These
define the various document attributes that have been indexed for the document represented by this result.getDocumentAttributes in interface DocumentSearchResultContractpublic List<DocumentAttribute> getDocumentAttributeByName(String attributeName)
attributeName - the attribute name of document attributes to retrievepublic DocumentAttribute getSingleDocumentAttributeByName(String attributeName)
attributeName - the attribute name of the document attribute to retrieveCopyright © 2005–2014 The Kuali Foundation. All rights reserved.