public class URIBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATASET_NAME_OPTION |
static String |
DATASET_SCHEME |
static String |
NAMESPACE_DEFAULT |
static String |
NAMESPACE_OPTION |
static String |
REPO_SCHEME |
static String |
VIEW_SCHEME |
Constructor and Description |
---|
URIBuilder(String uri)
Constructs a builder based on the given dataset or view URI string.
|
URIBuilder(String repoUri,
String namespace,
String datasetName)
Constructs a builder based on the given repository URI and
dataset name . |
URIBuilder(URI uri)
Constructs a builder based on the given dataset or view URI.
|
URIBuilder(URI repoUri,
String namespace,
String dataset)
Constructs a builder based on the given repository URI and
dataset name . |
Modifier and Type | Method and Description |
---|---|
URI |
build()
Returns a dataset or view URI encompassing the given constraints.
|
static URI |
build(String repoUri,
String namespace,
String dataset)
Builds a dataset URI from the given repository URI string, namespace, and
dataset name.
|
static URI |
build(URI repoUri,
String namespace,
String dataset)
Builds a dataset URI from the given repository URI, namespace, and dataset
name.
|
URIBuilder |
dataset(String dataset)
Sets the dataset name that is used to construct the dataset URI.
|
URIBuilder |
namespace(String namespace)
Sets the namespace that is used to construct the dataset URI.
|
URIBuilder |
with(String name,
Object value)
Adds a view constraint equivalent to
RefinableView.with(String, Object...) |
public static final String DATASET_NAME_OPTION
public static final String NAMESPACE_OPTION
public static final String NAMESPACE_DEFAULT
public static final String DATASET_SCHEME
public static final String VIEW_SCHEME
public static final String REPO_SCHEME
public URIBuilder(String repoUri, String namespace, String datasetName)
dataset name
.repoUri
- the repository URInamespace
- A namespace, or logical group name, for the dataset.datasetName
- the Dataset
namepublic URIBuilder(URI repoUri, String namespace, String dataset)
dataset name
.repoUri
- the repository URInamespace
- A namespace, or logical group name, for the dataset.dataset
- the Dataset
namepublic URIBuilder(String uri)
uri
- a dataset or view URI Stringpublic URIBuilder(URI uri)
uri
- a dataset or view URIpublic static URI build(String repoUri, String namespace, String dataset)
repoUri
- a repository URI stringnamespace
- a String namespacedataset
- a String dataset namepublic static URI build(URI repoUri, String namespace, String dataset)
repoUri
- a repository URInamespace
- a String namespacedataset
- a String dataset namepublic URIBuilder with(String name, Object value)
RefinableView.with(String, Object...)
name
- the field name of the Entityvalue
- the field valuepublic URIBuilder namespace(String namespace)
namespace
- a String namespacepublic URIBuilder dataset(String dataset)
dataset
- a String dataset namepublic URI build()
Dataset
or View
may be loaded again with
Datasets.load(URI, Class)
.Copyright © 2013–2014. All rights reserved.