org.openrdf.repository.config
Class RepositoryImplConfigBase

java.lang.Object
  extended by org.openrdf.repository.config.RepositoryImplConfigBase
All Implemented Interfaces:
RepositoryImplConfig
Direct Known Subclasses:
DelegatingRepositoryImplConfigBase, HTTPRepositoryConfig, SailRepositoryConfig, SystemRepositoryConfig

public class RepositoryImplConfigBase
extends Object
implements RepositoryImplConfig

Author:
Herko ter Horst

Constructor Summary
RepositoryImplConfigBase()
          Create a new RepositoryConfigImpl.
RepositoryImplConfigBase(String type)
          Create a new RepositoryConfigImpl.
 
Method Summary
static RepositoryImplConfig create(Graph graph, Resource implNode)
           
 Resource export(Graph graph)
           
 String getType()
           
 void parse(Graph graph, Resource implNode)
           
 void setType(String type)
           
 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

RepositoryImplConfigBase

public RepositoryImplConfigBase()
Create a new RepositoryConfigImpl.


RepositoryImplConfigBase

public RepositoryImplConfigBase(String type)
Create a new RepositoryConfigImpl.

Method Detail

getType

public String getType()
Specified by:
getType in interface RepositoryImplConfig

setType

public void setType(String type)

validate

public void validate()
              throws RepositoryConfigException
Description copied from interface: RepositoryImplConfig
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.

Specified by:
validate in interface RepositoryImplConfig
Throws:
RepositoryConfigException - If the configuration is invalid.

export

public Resource export(Graph graph)
Specified by:
export in interface RepositoryImplConfig

parse

public void parse(Graph graph,
                  Resource implNode)
           throws RepositoryConfigException
Specified by:
parse in interface RepositoryImplConfig
Throws:
RepositoryConfigException

create

public static RepositoryImplConfig create(Graph graph,
                                          Resource implNode)
                                   throws RepositoryConfigException
Throws:
RepositoryConfigException


Copyright © 2001-2010 Aduna. All Rights Reserved.