Class RepositoryConfig
java.lang.Object
org.eclipse.rdf4j.repository.config.RepositoryConfig
- Author:
- Arjohn Kampman
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new RepositoryConfig.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
Modifier and TypeMethodDescriptionstatic RepositoryConfigCreates a newRepositoryConfigobject and initializes it by supplying themodelandrepositoryNodeto itsparsemethod.voidDeprecated.voidExports the configuration into RDF using the given repositoryNodegetID()getTitle()voidvoidvoidsetRepositoryImplConfig(RepositoryImplConfig implConfig) voidvoidvalidate()Validates this configuration.
-
Constructor Details
-
RepositoryConfig
public RepositoryConfig()Create a new RepositoryConfig. -
RepositoryConfig
Create a new RepositoryConfigImpl. -
RepositoryConfig
Create a new RepositoryConfigImpl. -
RepositoryConfig
Create a new RepositoryConfigImpl. -
RepositoryConfig
Create a new RepositoryConfigImpl.
-
-
Method Details
-
getID
-
setID
-
getTitle
-
setTitle
-
getRepositoryImplConfig
-
setRepositoryImplConfig
-
validate
Validates 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. -
export
Exports the configuration into RDF using the given repositoryNode- Parameters:
model- target RDF collectionrepositoryNode-- Since:
- 2.3
-
parse
- 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
-
export(Model, Resource)