|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.config.RepositoryImplConfigBase
org.openrdf.repository.config.DelegatingRepositoryImplConfigBase
org.openrdf.repository.contextaware.config.ContextAwareConfig
org.openrdf.repository.object.config.ObjectRepositoryConfig
public class ObjectRepositoryConfig
Defines the Scope of an ObjectRepository and its factory. This
includes roles, literals, factories, datasets, and contexts.
| 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 |
|---|
public ObjectRepositoryConfig()
public ObjectRepositoryConfig(ClassLoader cl)
| Method Detail |
|---|
public void setClassLoader(ClassLoader cl)
public ClassLoader getClassLoader()
public List<Class<?>> getBaseClasses()
public void addBaseClass(Class<?> base)
public String getPackagePrefix()
public void setPackagePrefix(String pkgPrefix)
public String getMemberPrefix()
public void setMemberPrefix(String prefix)
public Map<Class<?>,URI> getDatatypes()
public void addDatatype(Class<?> type,
URI datatype)
throws ObjectStoreConfigException
type - serializable classdatatype - URI
ObjectStoreConfigExceptionpublic Map<Class<?>,URI> getAnnotations()
public void addAnnotation(Class<?> ann)
throws ObjectStoreConfigException
ann -
ObjectStoreConfigException
public void addAnnotation(Class<?> ann,
URI type)
throws ObjectStoreConfigException
ann - type -
ObjectStoreConfigExceptionpublic Map<Class<?>,URI> getConcepts()
public void addConcept(Class<?> concept)
throws ObjectStoreConfigException
concept - interface or class
ObjectStoreConfigException
public void addConcept(Class<?> concept,
URI type)
throws ObjectStoreConfigException
concept - interface or classtype - URI
ObjectStoreConfigExceptionpublic Map<Class<?>,URI> getBehaviours()
public void addBehaviour(Class<?> behaviour)
throws ObjectStoreConfigException
behaviour - class
ObjectStoreConfigException
public void addBehaviour(Class<?> behaviour,
URI type)
throws ObjectStoreConfigException
behaviour - classtype - URI
ObjectStoreConfigExceptionpublic List<URL> getConceptJars()
public void addConceptJar(URL jarFile)
public List<URL> getBehaviourJars()
public void addBehaviourJar(URL jarFile)
public List<URL> getImports()
public void addImports(URL ontology)
public boolean isFollowImports()
public void setFollowImports(boolean followImports)
public ObjectRepositoryConfig clone()
clone in class Objectmodule - to be included
public Resource export(Graph model)
export in interface RepositoryImplConfigexport in class ContextAwareConfig
public void parse(Graph graph,
Resource subj)
throws RepositoryConfigException
parse in interface RepositoryImplConfigparse in class ContextAwareConfigRepositoryConfigException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||