public class BindSource extends AbstractRequest
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, hashCode, mode, toElementpublic BindSource(String name)
name - the namepublic String name()
public List<QName> types()
public void addTypes(QName... types) throws IllegalArgumentException
types - the typesIllegalArgumentException - if the input is nullpublic void setDescription(String description)
description - the descriptionpublic String description()
Copyright © 2020. All Rights Reserved.