public class AbstractRepositoryImplConfig extends Object implements RepositoryImplConfig
| Constructor and Description |
|---|
AbstractRepositoryImplConfig()
Create a new RepositoryConfigImpl.
|
AbstractRepositoryImplConfig(String type)
Create a new RepositoryConfigImpl.
|
| Modifier and Type | Method and Description |
|---|---|
static RepositoryImplConfig |
create(Model model,
Resource resource)
Utility method to create a new
RepositoryImplConfig by reading data from the supplied Model. |
Resource |
export(Model model)
Export this
RepositoryImplConfig to its RDF representation |
String |
getType() |
void |
parse(Model model,
Resource resource)
Reads the properties of this
RepositoryImplConfig from the supplied Model and sets them accordingly. |
void |
setType(String type) |
void |
validate()
Validates this configuration.
|
public AbstractRepositoryImplConfig()
public AbstractRepositoryImplConfig(String type)
type - public String getType()
getType in interface RepositoryImplConfigpublic void setType(String type)
public void validate()
throws RepositoryConfigException
RepositoryImplConfigRepositoryConfigException is thrown when the configuration is invalid.
The exception should contain an error message that indicates why the configuration is invalid.validate in interface RepositoryImplConfigRepositoryConfigException - If the configuration is invalid.public Resource export(Model model)
RepositoryImplConfigRepositoryImplConfig to its RDF representationexport in interface RepositoryImplConfigmodel - a Model object. After successful completion of this method this Model will contain the RDF
representation of this RepositoryImplConfig.Resource that identifies this RepositoryImplConfig in the Model.public void parse(Model model, Resource resource) throws RepositoryConfigException
RepositoryImplConfigRepositoryImplConfig from the supplied Model and sets them accordingly.parse in interface RepositoryImplConfigmodel - a Model containing repository configuration data.resource - the subject Resource that identifies the RepositoryImplConfig in the Model.RepositoryConfigException - if the configuration data could not be read from the supplied Model.public static RepositoryImplConfig create(Model model, Resource resource) throws RepositoryConfigException
RepositoryImplConfig by reading data from the supplied Model.model - the Model to read configuration data from.resource - the subject Resource identifying the configuration data in the Model.RepositoryImplConfig initialized with the configuration from the input Model, or
null if no RepositoryConfigSchema.REPOSITORYTYPE property was found in the configuration
data..RepositoryConfigException - if an error occurred reading the configuration data from the model.Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.