org.openrdf.repository.config
Class RepositoryConfig

java.lang.Object
  extended by org.openrdf.repository.config.RepositoryConfig

public class RepositoryConfig
extends Object

Author:
Arjohn Kampman

Constructor Summary
RepositoryConfig()
          Create a new RepositoryConfig.
RepositoryConfig(String id)
          Create a new RepositoryConfigImpl.
RepositoryConfig(String id, RepositoryImplConfig implConfig)
          Create a new RepositoryConfigImpl.
RepositoryConfig(String id, String title)
          Create a new RepositoryConfigImpl.
RepositoryConfig(String id, String title, RepositoryImplConfig implConfig)
          Create a new RepositoryConfigImpl.
 
Method Summary
static RepositoryConfig create(Graph graph, Resource repositoryNode)
          Creates a new RepositoryConfig object and initializes it by supplying the graph and repositoryNode to its parse method.
 void export(Graph graph)
           
 String getID()
           
 RepositoryImplConfig getRepositoryImplConfig()
           
 String getTitle()
           
 void parse(Graph graph, Resource repositoryNode)
           
 void setID(String id)
           
 void setRepositoryImplConfig(RepositoryImplConfig implConfig)
           
 void setTitle(String title)
           
 void validate()
          Validates this configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryConfig

public RepositoryConfig()
Create a new RepositoryConfig.


RepositoryConfig

public RepositoryConfig(String id)
Create a new RepositoryConfigImpl.


RepositoryConfig

public RepositoryConfig(String id,
                        RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.


RepositoryConfig

public RepositoryConfig(String id,
                        String title)
Create a new RepositoryConfigImpl.


RepositoryConfig

public RepositoryConfig(String id,
                        String title,
                        RepositoryImplConfig implConfig)
Create a new RepositoryConfigImpl.

Method Detail

getID

public String getID()

setID

public void setID(String id)

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getRepositoryImplConfig

public RepositoryImplConfig getRepositoryImplConfig()

setRepositoryImplConfig

public void setRepositoryImplConfig(RepositoryImplConfig implConfig)

validate

public void validate()
              throws RepositoryConfigException
Validates this configuration. A RepositoryConfigException 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

public void export(Graph graph)

parse

public void parse(Graph graph,
                  Resource repositoryNode)
           throws RepositoryConfigException
Throws:
RepositoryConfigException

create

public static RepositoryConfig create(Graph graph,
                                      Resource repositoryNode)
                               throws RepositoryConfigException
Creates a new RepositoryConfig object and initializes it by supplying the graph and repositoryNode to its parse method.

Throws:
RepositoryConfigException


Copyright © 2001-2010 Aduna. All Rights Reserved.