01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.repository.config;
07:
08: import org.openrdf.model.Graph;
09: import org.openrdf.model.Resource;
10:
11: /**
12: * @author Arjohn Kampman
13: */
14: public interface RepositoryImplConfig {
15:
16: public String getType();
17:
18: /**
19: * Validates this configuration. A {@link RepositoryConfigException} is
20: * thrown when the configuration is invalid. The exception should contain an
21: * error message that indicates why the configuration is invalid.
22: *
23: * @throws RepositoryConfigException
24: * If the configuration is invalid.
25: */
26: public void validate() throws RepositoryConfigException;
27:
28: public Resource export(Graph graph);
29:
30: public void parse(Graph graph, Resource implNode)
31: throws RepositoryConfigException;
32: }
|