Class DocumentSearchResultValues.Builder
java.lang.Object
org.kuali.rice.kew.framework.document.search.DocumentSearchResultValues.Builder
- All Implemented Interfaces:
Serializable,ModelBuilder,DocumentSearchResultValuesContract
- Enclosing class:
DocumentSearchResultValues
public static final class DocumentSearchResultValues.Builder
extends Object
implements Serializable, ModelBuilder, DocumentSearchResultValuesContract
A builder which can be used to construct
DocumentSearchResultValues instances. Enforces the
constraints of the DocumentSearchResultValuesContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()Creates new empty builder instance.create(DocumentSearchResultValuesContract contract) Creates a new builder instance initialized with copies of the properties from the given contract.Returns an unmodifiable list of the result values, one for each customized document.voidsetResultValues(List<DocumentSearchResultValue.Builder> resultValues)
-
Method Details
-
create
Creates new empty builder instance. The various lists on this builder are initialized to empty lists. The internal list of result value builders is initialized to an empty list.- Returns:
- a new empty builder instance
-
create
public static DocumentSearchResultValues.Builder create(DocumentSearchResultValuesContract contract) Creates a new builder instance initialized with copies of the properties from the given contract.- Parameters:
contract- the contract from which to copy properties- Returns:
- a builder instance initialized with properties from the given contract
- Throws:
IllegalArgumentException- if the given contract is null
-
build
- Specified by:
buildin interfaceModelBuilder
-
getResultValues
Description copied from interface:DocumentSearchResultValuesContractReturns an unmodifiable list of the result values, one for each customized document.- Specified by:
getResultValuesin interfaceDocumentSearchResultValuesContract- Returns:
- the list of customized document search result values, will never be null but may be empty
-
setResultValues
-