public class RepositoryConfig extends Object
Constructor and Description |
---|
RepositoryConfig()
Create a new RepositoryConfig.
|
RepositoryConfig(String id)
Create a new RepositoryConfigImpl.
|
RepositoryConfig(String id,
RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.
|
RepositoryConfig(String id,
String title)
Create a new RepositoryConfigImpl.
|
RepositoryConfig(String id,
String title,
RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.
|
Modifier and Type | Method and Description |
---|---|
static RepositoryConfig |
create(Model model,
Resource repositoryNode)
Creates a new
RepositoryConfig object and initializes it by supplying the model and
repositoryNode to its parse method. |
void |
export(Model model)
Deprecated.
|
void |
export(Model model,
Resource repositoryNode)
Exports the configuration into RDF using the given repositoryNode
|
String |
getID() |
RepositoryImplConfig |
getRepositoryImplConfig() |
String |
getTitle() |
void |
parse(Model model,
Resource repositoryNode) |
void |
setID(String id) |
void |
setRepositoryImplConfig(RepositoryImplConfig implConfig) |
void |
setTitle(String title) |
void |
validate()
Validates this configuration.
|
public RepositoryConfig()
public RepositoryConfig(String id)
public RepositoryConfig(String id, RepositoryImplConfig implConfig)
public RepositoryConfig(String id, String title)
public RepositoryConfig(String id, String title, RepositoryImplConfig implConfig)
public String getID()
public void setID(String id)
public String getTitle()
public void setTitle(String title)
public RepositoryImplConfig getRepositoryImplConfig()
public void setRepositoryImplConfig(RepositoryImplConfig implConfig)
public void validate() throws RepositoryConfigException
RepositoryConfigException
is thrown when the configuration is invalid.
The exception should contain an error message that indicates why the configuration is invalid.RepositoryConfigException
- If the configuration is invalid.@Deprecated public void export(Model model)
export(Model, Resource)
public void export(Model model, Resource repositoryNode)
model
- target RDF collectionrepositoryNode
- public void parse(Model model, Resource repositoryNode) throws RepositoryConfigException
RepositoryConfigException
public static RepositoryConfig create(Model model, Resource repositoryNode) throws RepositoryConfigException
RepositoryConfig
object and initializes it by supplying the model
and
repositoryNode
to its parse
method.model
- the Model
to read initialization data from.repositoryNode
- the subject Resource
that identifies the RepositoryConfig
in the supplied
Model.RepositoryConfigException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.