Class AbstractRepositoryImplConfig
java.lang.Object
org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
- All Implemented Interfaces:
RepositoryImplConfig
- Direct Known Subclasses:
AbstractDelegatingRepositoryImplConfig,FedXRepositoryConfig,HTTPRepositoryConfig,ProxyRepositoryConfig,SailRepositoryConfig,SPARQLRepositoryConfig
- Author:
- Herko ter Horst
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new RepositoryConfigImpl.Create a new RepositoryConfigImpl. -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryImplConfigUtility method to create a newRepositoryImplConfigby reading data from the suppliedModel.Export thisRepositoryImplConfigto its RDF representationgetType()voidReads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.voidvoidvalidate()Validates this configuration.
-
Constructor Details
-
AbstractRepositoryImplConfig
public AbstractRepositoryImplConfig()Create a new RepositoryConfigImpl. -
AbstractRepositoryImplConfig
Create a new RepositoryConfigImpl.- Parameters:
type-
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceRepositoryImplConfig
-
setType
-
validate
Description copied from interface:RepositoryImplConfigValidates this configuration. ARepositoryConfigExceptionis thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validatein interfaceRepositoryImplConfig- Throws:
RepositoryConfigException- If the configuration is invalid.
-
export
Description copied from interface:RepositoryImplConfigExport thisRepositoryImplConfigto its RDF representation- Specified by:
exportin interfaceRepositoryImplConfig- Parameters:
model- aModelobject. After successful completion of this method this Model will contain the RDF representation of thisRepositoryImplConfig.- Returns:
- the subject
Resourcethat identifies thisRepositoryImplConfigin the Model.
-
parse
Description copied from interface:RepositoryImplConfigReads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.- Specified by:
parsein interfaceRepositoryImplConfig- Parameters:
model- aModelcontaining repository configuration data.resource- the subjectResourcethat identifies theRepositoryImplConfigin the Model.- Throws:
RepositoryConfigException- if the configuration data could not be read from the supplied Model.
-
create
public static RepositoryImplConfig create(Model model, Resource resource) throws RepositoryConfigException Utility method to create a newRepositoryImplConfigby reading data from the suppliedModel.- Parameters:
model- theModelto read configuration data from.resource- the subjectResourceidentifying the configuration data in the Model.- Returns:
- a new
RepositoryImplConfiginitialized with the configuration from the input Model, ornullif noRepositoryConfigSchema.REPOSITORYTYPEproperty was found in the configuration data.. - Throws:
RepositoryConfigException- if an error occurred reading the configuration data from the model.
-