|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tr.requests.AbstractRequest
org.gcube.data.tr.requests.BindSource
public class BindSource
A Request for the plugin to create a data source.
A source is created with a name and a Mode of access, Mode.FULLACESSS by default.
Optionally, it may have a description and one or more types that label the characterise the structure of the
trees that will be stored within it.
| Constructor Summary | |
|---|---|
BindSource(String name)
Creates an instance for a source with a given name. |
|
BindSource(String name,
Mode mode)
Creates an instance for a source with a given name and in a given mode. |
|
| Method Summary | |
|---|---|
void |
addTypes(QName... types)
Adds one or more types for the source associated with the request. |
String |
description()
Returns the description of the source associated with the request. |
String |
name()
Returns the name of the source associated with the request. |
void |
setDescription(String description)
Sets a description for the source associated with the request. |
List<QName> |
types()
Returns the types of the source associated with the request. |
| Methods inherited from class org.gcube.data.tr.requests.AbstractRequest |
|---|
equals, hashCode, mode, send, send, send |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindSource(String name)
name - the name
public BindSource(String name,
Mode mode)
name - the name| Method Detail |
|---|
public String name()
public List<QName> types()
public void addTypes(QName... types)
throws IllegalArgumentException
types - the types
IllegalArgumentException - if the input is nullpublic void setDescription(String description)
description - the descriptionpublic String description()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||