DataSourcesRequest.Builder

public static class DataSourcesRequest.Builder extends Object

Builder used to create new DataSourceRequests.

Public Constructor Summary

Public Method Summary

DataSourcesRequest
build()
Finishes building and returns the request.
DataSourcesRequest.Builder
setDataSourceTypes(int... dataSourceTypes)
Sets the data source types that should be searched for in the data sources request.
DataSourcesRequest.Builder
setDataTypes(DataType... dataTypes)
Sets the desired data types to search for on the data sources request.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public DataSourcesRequest build ()

Finishes building and returns the request.

Throws
IllegalStateException If the builder doesn't have enough data to build a valid request

public DataSourcesRequest.Builder setDataSourceTypes (int... dataSourceTypes)

Sets the data source types that should be searched for in the data sources request. By default the data sources request will search for all source types. Use this method if you'd like to restrict the search to only raw or only derived data sources. Calling this method multiple times will override the previous calls.

Parameters
dataSourceTypes A varargs array representing the types of data sources that you're searching for. Each can be specified as one of the type constants from DataSource.

public DataSourcesRequest.Builder setDataTypes (DataType... dataTypes)

Sets the desired data types to search for on the data sources request. At least one data type should be set, or build() will throw an exception.

Parameters
dataTypes The data types to search for. These can be one of the data types listed in DataType, or a custom data type.