|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.elmo.ElmoModule
public class ElmoModule
Defines the Scope of an ElmoManager and its factory. This includes roles, literals, factories, datasets, and contexts.
| Nested Class Summary | |
|---|---|
static class |
ElmoModule.Association
|
| Constructor Summary | |
|---|---|
ElmoModule()
|
|
ElmoModule(ClassLoader cl)
|
|
| Method Summary | |
|---|---|
ElmoModule |
addBehaviour(Class<?> behaviour)
Associates this behaviour with its default subject type. |
ElmoModule |
addBehaviour(Class<?> behaviour,
String type)
Associates this behaviour with the given subject type. |
ElmoModule |
addConcept(Class<?> concept)
Associates this concept with its default subject type. |
ElmoModule |
addConcept(Class<?> concept,
String type)
Associates this concept with the given subject type. |
ElmoModule |
addDataset(URL dataset)
Marks this dataset to be loaded into the repository under a context of the same URL. |
ElmoModule |
addDataset(URL dataset,
String context)
Marks this dataset to be loaded and replace any data in the given context. |
ElmoModule |
addDatatype(Class<?> type,
String uri)
Associates this datatype with the given uri within this factory. |
ElmoModule |
addFactory(Class<?> factory)
Associates this factory with its default subject type. |
ElmoModule |
addFactory(Class<?> factory,
String type)
Associates this factory with the given subject type. |
ElmoModule |
addJarFileUrl(URL jarFile)
|
ElmoModule |
addLiteral(Class<?> type,
String uri)
Deprecated. |
ElmoModule |
addResources(String path)
Load a resource listing datasets - optionally assigned to a context |
ElmoModule |
addRole(Class<?> role)
Deprecated. |
ElmoModule |
addRole(Class<?> role,
String type)
Deprecated. |
boolean |
equals(Object obj)
|
List<ElmoModule.Association> |
getBehaviours()
|
ClassLoader |
getClassLoader()
|
List<ElmoModule.Association> |
getConcepts()
|
Map<URL,String> |
getDatasets()
|
List<ElmoModule.Association> |
getDatatypes()
|
List<ElmoModule.Association> |
getFactories()
|
QName |
getGraph()
|
Set<QName> |
getIncludedGraphs()
|
List<URL> |
getJarFileUrls()
|
List<String> |
getResources()
|
int |
hashCode()
|
ElmoModule |
includeModule(ElmoModule module)
Include all the information from the given module in this module. |
ElmoModule |
setContext(QName graph)
Deprecated. |
ElmoModule |
setGraph(QName graph)
Sets the primary graph of this module. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ElmoModule()
public ElmoModule(ClassLoader cl)
| Method Detail |
|---|
public ClassLoader getClassLoader()
public QName getGraph()
public ElmoModule setGraph(QName graph)
graph -
@Deprecated public ElmoModule setContext(QName graph)
public ElmoModule includeModule(ElmoModule module)
module - to be included
public Set<QName> getIncludedGraphs()
public List<ElmoModule.Association> getDatatypes()
public ElmoModule addDatatype(Class<?> type,
String uri)
type - serializable classdatatype - URI
@Deprecated
public ElmoModule addLiteral(Class<?> type,
String uri)
@Deprecated public ElmoModule addRole(Class<?> role)
role - concept or behaviour
@Deprecated
public ElmoModule addRole(Class<?> role,
String type)
role - concept or behaviourtype - URIpublic List<ElmoModule.Association> getConcepts()
public ElmoModule addConcept(Class<?> concept)
concept - interface or class
public ElmoModule addConcept(Class<?> concept,
String type)
concept - interface or classtype - URIpublic List<ElmoModule.Association> getBehaviours()
public ElmoModule addBehaviour(Class<?> behaviour)
behaviour - class
public ElmoModule addBehaviour(Class<?> behaviour,
String type)
behaviour - classtype - URIpublic List<ElmoModule.Association> getFactories()
public ElmoModule addFactory(Class<?> factory)
factory - class
public ElmoModule addFactory(Class<?> factory,
String type)
factory - classtype - URIpublic Map<URL,String> getDatasets()
public ElmoModule addDataset(URL dataset)
dataset -
public ElmoModule addDataset(URL dataset,
String context)
dataset - context -
public List<String> getResources()
public ElmoModule addResources(String path)
path -
public List<URL> getJarFileUrls()
public ElmoModule addJarFileUrl(URL jarFile)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||