Class RepositoryConfig
- java.lang.Object
-
- org.eclipse.rdf4j.repository.config.RepositoryConfig
-
public class RepositoryConfig extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
id
private RepositoryImplConfig
implConfig
private java.lang.String
title
private static boolean
USE_CONFIG
-
Constructor Summary
Constructors Constructor Description RepositoryConfig()
Create a new RepositoryConfig.RepositoryConfig(java.lang.String id)
Create a new RepositoryConfigImpl.RepositoryConfig(java.lang.String id, java.lang.String title)
Create a new RepositoryConfigImpl.RepositoryConfig(java.lang.String id, java.lang.String title, RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.RepositoryConfig(java.lang.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 RepositoryConfig
create(Model model, Resource repositoryNode)
Creates a newRepositoryConfig
object and initializes it by supplying themodel
andrepositoryNode
to itsparse
method.void
export(Model model)
Deprecated.void
export(Model model, Resource repositoryNode)
Exports the configuration into RDF using the given repositoryNodejava.lang.String
getID()
RepositoryImplConfig
getRepositoryImplConfig()
java.lang.String
getTitle()
void
parse(Model model, Resource repositoryNode)
void
setID(java.lang.String id)
void
setRepositoryImplConfig(RepositoryImplConfig implConfig)
void
setTitle(java.lang.String title)
void
validate()
Validates this configuration.
-
-
-
Field Detail
-
USE_CONFIG
private static final boolean USE_CONFIG
-
id
private java.lang.String id
-
title
private java.lang.String title
-
implConfig
private RepositoryImplConfig implConfig
-
-
Constructor Detail
-
RepositoryConfig
public RepositoryConfig()
Create a new RepositoryConfig.
-
RepositoryConfig
public RepositoryConfig(java.lang.String id)
Create a new RepositoryConfigImpl.
-
RepositoryConfig
public RepositoryConfig(java.lang.String id, RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.
-
RepositoryConfig
public RepositoryConfig(java.lang.String id, java.lang.String title)
Create a new RepositoryConfigImpl.
-
RepositoryConfig
public RepositoryConfig(java.lang.String id, java.lang.String title, RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.
-
-
Method Detail
-
getID
public java.lang.String getID()
-
setID
public void setID(java.lang.String id)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public void setTitle(java.lang.String title)
-
getRepositoryImplConfig
public RepositoryImplConfig getRepositoryImplConfig()
-
setRepositoryImplConfig
public void setRepositoryImplConfig(RepositoryImplConfig implConfig)
-
validate
public void validate() throws RepositoryConfigException
Validates this configuration. ARepositoryConfigException
is 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 newRepositoryConfig
object and initializes it by supplying themodel
andrepositoryNode
to itsparse
method.- Parameters:
model
- theModel
to read initialization data from.repositoryNode
- the subjectResource
that identifies theRepositoryConfig
in the supplied Model.- Throws:
RepositoryConfigException
-
-