org.openrdf.repository.object.config
Class ObjectRepositoryConfig

java.lang.Object
  extended by org.openrdf.repository.config.RepositoryImplConfigBase
      extended by org.openrdf.repository.config.DelegatingRepositoryImplConfigBase
          extended by org.openrdf.repository.contextaware.config.ContextAwareConfig
              extended by org.openrdf.repository.object.config.ObjectRepositoryConfig
All Implemented Interfaces:
Cloneable, DelegatingRepositoryImplConfig, RepositoryImplConfig

public class ObjectRepositoryConfig
extends ContextAwareConfig
implements Cloneable

Defines the Scope of an ObjectRepository and its factory. This includes roles, literals, factories, datasets, and contexts.

Author:
James Leigh

Constructor Summary
ObjectRepositoryConfig()
           
ObjectRepositoryConfig(ClassLoader cl)
           
 
Method Summary
 void addAnnotation(Class<?> ann)
          Associates this annotation with its annotated type.
 void addAnnotation(Class<?> ann, URI type)
          Associates this annotation with the given type.
 void addBaseClass(Class<?> base)
           
 void addBehaviour(Class<?> behaviour)
          Associates this behaviour with its implemented type.
 void addBehaviour(Class<?> behaviour, URI type)
          Associates this behaviour with the given type.
 void addBehaviourJar(URL jarFile)
           
 void addConcept(Class<?> concept)
          Associates this concept with its annotated type.
 void addConcept(Class<?> concept, URI type)
          Associates this concept with the given type.
 void addConceptJar(URL jarFile)
           
 void addDatatype(Class<?> type, URI datatype)
          Associates this class with the given datatype.
 void addImports(URL ontology)
           
 ObjectRepositoryConfig clone()
          Include all the information from the given module in this module.
 Resource export(Graph model)
           
 Map<Class<?>,URI> getAnnotations()
           
 List<Class<?>> getBaseClasses()
           
 List<URL> getBehaviourJars()
           
 Map<Class<?>,URI> getBehaviours()
           
 ClassLoader getClassLoader()
           
 List<URL> getConceptJars()
           
 Map<Class<?>,URI> getConcepts()
           
 Map<Class<?>,URI> getDatatypes()
           
 List<URL> getImports()
           
 String getMemberPrefix()
           
 String getPackagePrefix()
           
 boolean isFollowImports()
           
 void parse(Graph graph, Resource subj)
           
 void setClassLoader(ClassLoader cl)
           
 void setFollowImports(boolean followImports)
           
 void setMemberPrefix(String prefix)
           
 void setPackagePrefix(String pkgPrefix)
           
 
Methods inherited from class org.openrdf.repository.contextaware.config.ContextAwareConfig
getAddContexts, getArchiveContexts, getMaxQueryTime, getQueryLanguage, getReadContexts, getRemoveContexts, isIncludeInferred, setAddContexts, setArchiveContexts, setIncludeInferred, setMaxQueryTime, setQueryLanguage, setReadContexts, setRemoveContexts
 
Methods inherited from class org.openrdf.repository.config.DelegatingRepositoryImplConfigBase
getDelegate, setDelegate, validate
 
Methods inherited from class org.openrdf.repository.config.RepositoryImplConfigBase
create, getType, setType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.repository.config.RepositoryImplConfig
getType
 

Constructor Detail

ObjectRepositoryConfig

public ObjectRepositoryConfig()

ObjectRepositoryConfig

public ObjectRepositoryConfig(ClassLoader cl)
Method Detail

setClassLoader

public void setClassLoader(ClassLoader cl)

getClassLoader

public ClassLoader getClassLoader()

getBaseClasses

public List<Class<?>> getBaseClasses()

addBaseClass

public void addBaseClass(Class<?> base)

getPackagePrefix

public String getPackagePrefix()

setPackagePrefix

public void setPackagePrefix(String pkgPrefix)

getMemberPrefix

public String getMemberPrefix()

setMemberPrefix

public void setMemberPrefix(String prefix)

getDatatypes

public Map<Class<?>,URI> getDatatypes()

addDatatype

public void addDatatype(Class<?> type,
                        URI datatype)
                 throws ObjectStoreConfigException
Associates this class with the given datatype.

Parameters:
type - serializable class
datatype - URI
Throws:
ObjectStoreConfigException

getAnnotations

public Map<Class<?>,URI> getAnnotations()

addAnnotation

public void addAnnotation(Class<?> ann)
                   throws ObjectStoreConfigException
Associates this annotation with its annotated type.

Parameters:
ann -
Throws:
ObjectStoreConfigException

addAnnotation

public void addAnnotation(Class<?> ann,
                          URI type)
                   throws ObjectStoreConfigException
Associates this annotation with the given type.

Parameters:
ann -
type -
Throws:
ObjectStoreConfigException

getConcepts

public Map<Class<?>,URI> getConcepts()

addConcept

public void addConcept(Class<?> concept)
                throws ObjectStoreConfigException
Associates this concept with its annotated type.

Parameters:
concept - interface or class
Throws:
ObjectStoreConfigException

addConcept

public void addConcept(Class<?> concept,
                       URI type)
                throws ObjectStoreConfigException
Associates this concept with the given type.

Parameters:
concept - interface or class
type - URI
Throws:
ObjectStoreConfigException

getBehaviours

public Map<Class<?>,URI> getBehaviours()

addBehaviour

public void addBehaviour(Class<?> behaviour)
                  throws ObjectStoreConfigException
Associates this behaviour with its implemented type.

Parameters:
behaviour - class
Throws:
ObjectStoreConfigException

addBehaviour

public void addBehaviour(Class<?> behaviour,
                         URI type)
                  throws ObjectStoreConfigException
Associates this behaviour with the given type.

Parameters:
behaviour - class
type - URI
Throws:
ObjectStoreConfigException

getConceptJars

public List<URL> getConceptJars()

addConceptJar

public void addConceptJar(URL jarFile)

getBehaviourJars

public List<URL> getBehaviourJars()

addBehaviourJar

public void addBehaviourJar(URL jarFile)

getImports

public List<URL> getImports()

addImports

public void addImports(URL ontology)

isFollowImports

public boolean isFollowImports()

setFollowImports

public void setFollowImports(boolean followImports)

clone

public ObjectRepositoryConfig clone()
Include all the information from the given module in this module.

Overrides:
clone in class Object
Parameters:
module - to be included
Returns:
this

export

public Resource export(Graph model)
Specified by:
export in interface RepositoryImplConfig
Overrides:
export in class ContextAwareConfig

parse

public void parse(Graph graph,
                  Resource subj)
           throws RepositoryConfigException
Specified by:
parse in interface RepositoryImplConfig
Overrides:
parse in class ContextAwareConfig
Throws:
RepositoryConfigException


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.