Class RepositoryConfig
- java.lang.Object
-
- org.eclipse.rdf4j.repository.config.RepositoryConfig
-
public class RepositoryConfig extends Object
- Author:
- Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description RepositoryConfig()Create a new RepositoryConfig.RepositoryConfig(String id)Create a new RepositoryConfigImpl.RepositoryConfig(String id, String title)Create a new RepositoryConfigImpl.RepositoryConfig(String id, String title, RepositoryImplConfig implConfig)Create a new RepositoryConfigImpl.RepositoryConfig(String id, RepositoryImplConfig implConfig)Create a new RepositoryConfigImpl.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RepositoryConfigcreate(Model model, Resource repositoryNode)Creates a newRepositoryConfigobject and initializes it by supplying themodelandrepositoryNodeto itsparsemethod.voidexport(Model model)Deprecated.voidexport(Model model, Resource repositoryNode)Exports the configuration into RDF using the given repositoryNodeStringgetID()RepositoryImplConfiggetRepositoryImplConfig()StringgetTitle()voidparse(Model model, Resource repositoryNode)voidsetID(String id)voidsetRepositoryImplConfig(RepositoryImplConfig implConfig)voidsetTitle(String title)voidvalidate()Validates this configuration.
-
-
-
Constructor Detail
-
RepositoryConfig
public RepositoryConfig()
Create a new RepositoryConfig.
-
RepositoryConfig
public RepositoryConfig(String id)
Create a new RepositoryConfigImpl.
-
RepositoryConfig
public RepositoryConfig(String id, RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.
-
RepositoryConfig
public RepositoryConfig(String id, String title)
Create a new RepositoryConfigImpl.
-
RepositoryConfig
public RepositoryConfig(String id, String title, RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.
-
-
Method Detail
-
getID
public String getID()
-
setID
public void setID(String id)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getRepositoryImplConfig
public RepositoryImplConfig getRepositoryImplConfig()
-
setRepositoryImplConfig
public void setRepositoryImplConfig(RepositoryImplConfig implConfig)
-
validate
public void validate() throws RepositoryConfigExceptionValidates this configuration. ARepositoryConfigExceptionis thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Throws:
RepositoryConfigException- If the configuration is invalid.
-
export
@Deprecated public void export(Model model)
Deprecated.
-
export
public void export(Model model, Resource repositoryNode)
Exports the configuration into RDF using the given repositoryNode- Parameters:
model- target RDF collectionrepositoryNode-- Since:
- 2.3
-
parse
public void parse(Model model, Resource repositoryNode) throws RepositoryConfigException
- Throws:
RepositoryConfigException
-
create
public static RepositoryConfig create(Model model, Resource repositoryNode) throws RepositoryConfigException
Creates a newRepositoryConfigobject and initializes it by supplying themodelandrepositoryNodeto itsparsemethod.- Parameters:
model- theModelto read initialization data from.repositoryNode- the subjectResourcethat identifies theRepositoryConfigin the supplied Model.- Throws:
RepositoryConfigException
-
-