Class AbstractDelegatingRepositoryImplConfig
java.lang.Object
org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
org.eclipse.rdf4j.repository.config.AbstractDelegatingRepositoryImplConfig
- All Implemented Interfaces:
DelegatingRepositoryImplConfig
,RepositoryImplConfig
- Direct Known Subclasses:
ContextAwareConfig
,DatasetRepositoryConfig
public abstract class AbstractDelegatingRepositoryImplConfig
extends AbstractRepositoryImplConfig
implements DelegatingRepositoryImplConfig
- Author:
- Herko ter Horst
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new DelegatingRepositoryImplConfigBase.protected
Create a new DelegatingRepositoryImplConfigBase.protected
AbstractDelegatingRepositoryImplConfig(String type, RepositoryImplConfig delegate)
Create a new DelegatingRepositoryImplConfigBase. -
Method Summary
Modifier and TypeMethodDescriptionExport thisRepositoryImplConfig
to its RDF representationvoid
Reads the properties of thisRepositoryImplConfig
from the supplied Model and sets them accordingly.void
setDelegate(RepositoryImplConfig delegate)
void
validate()
Validates this configuration.Methods inherited from class org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
create, getType, setType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.repository.config.RepositoryImplConfig
getType
-
Constructor Details
-
AbstractDelegatingRepositoryImplConfig
protected AbstractDelegatingRepositoryImplConfig()Create a new DelegatingRepositoryImplConfigBase. -
AbstractDelegatingRepositoryImplConfig
Create a new DelegatingRepositoryImplConfigBase. -
AbstractDelegatingRepositoryImplConfig
Create a new DelegatingRepositoryImplConfigBase.
-
-
Method Details
-
getDelegate
- Specified by:
getDelegate
in interfaceDelegatingRepositoryImplConfig
-
setDelegate
-
validate
Description copied from interface:RepositoryImplConfig
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.- Specified by:
validate
in interfaceRepositoryImplConfig
- Overrides:
validate
in classAbstractRepositoryImplConfig
- Throws:
RepositoryConfigException
- If the configuration is invalid.
-
export
Description copied from interface:RepositoryImplConfig
Export thisRepositoryImplConfig
to its RDF representation- Specified by:
export
in interfaceRepositoryImplConfig
- Overrides:
export
in classAbstractRepositoryImplConfig
- Parameters:
model
- aModel
object. After successful completion of this method this Model will contain the RDF representation of thisRepositoryImplConfig
.- Returns:
- the subject
Resource
that identifies thisRepositoryImplConfig
in the Model.
-
parse
Description copied from interface:RepositoryImplConfig
Reads the properties of thisRepositoryImplConfig
from the supplied Model and sets them accordingly.- Specified by:
parse
in interfaceRepositoryImplConfig
- Overrides:
parse
in classAbstractRepositoryImplConfig
- Parameters:
model
- aModel
containing repository configuration data.resource
- the subjectResource
that identifies theRepositoryImplConfig
in the Model.- Throws:
RepositoryConfigException
- if the configuration data could not be read from the supplied Model.
-