org.apache.clerezza.platform.documentation
Class DocumentationProvider
java.lang.Object
org.apache.clerezza.platform.documentation.DocumentationProvider
- All Implemented Interfaces:
- java.util.EventListener, org.apache.clerezza.rdf.core.access.TcProvider, org.apache.clerezza.rdf.core.access.WeightedTcProvider, org.osgi.framework.BundleListener
@Services(value={@Service(value=org.apache.clerezza.rdf.core.access.WeightedTcProvider.class),@Service(value=DocumentationProvider.class)})
@Property(name="weight",
intValue=30)
public class DocumentationProvider- extends java.lang.Object
- implements org.apache.clerezza.rdf.core.access.WeightedTcProvider, org.osgi.framework.BundleListener
The DocumentationProvider gathers the documentations of bundles and provides
a graph containing all documentations.
It is an implementation of WeightedTcProvider with the default
weight 30.
- Author:
- mir, hasan
|
Field Summary |
static org.apache.clerezza.rdf.core.UriRef |
DOCUMENTATION_GRAPH_URI
The URI of the graph containing the documentations |
|
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
|
void |
bundleChanged(org.osgi.framework.BundleEvent event)
|
org.apache.clerezza.rdf.core.Graph |
createGraph(org.apache.clerezza.rdf.core.UriRef name,
org.apache.clerezza.rdf.core.TripleCollection triples)
|
org.apache.clerezza.rdf.core.MGraph |
createMGraph(org.apache.clerezza.rdf.core.UriRef name)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
void |
deleteTripleCollection(org.apache.clerezza.rdf.core.UriRef name)
|
org.apache.clerezza.rdf.core.Graph |
getGraph(org.apache.clerezza.rdf.core.UriRef name)
|
org.apache.clerezza.rdf.core.MGraph |
getMGraph(org.apache.clerezza.rdf.core.UriRef name)
|
java.util.Set<org.apache.clerezza.rdf.core.UriRef> |
getNames(org.apache.clerezza.rdf.core.Graph graph)
|
org.apache.clerezza.rdf.core.TripleCollection |
getTriples(org.apache.clerezza.rdf.core.UriRef name)
|
int |
getWeight()
|
java.util.Set<org.apache.clerezza.rdf.core.UriRef> |
listGraphs()
|
java.util.Set<org.apache.clerezza.rdf.core.UriRef> |
listMGraphs()
|
java.util.Set<org.apache.clerezza.rdf.core.UriRef> |
listTripleCollections()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOCUMENTATION_GRAPH_URI
public static final org.apache.clerezza.rdf.core.UriRef DOCUMENTATION_GRAPH_URI
- The URI of the graph containing the documentations
DocumentationProvider
public DocumentationProvider()
getWeight
public int getWeight()
- Specified by:
getWeight in interface org.apache.clerezza.rdf.core.access.WeightedTcProvider
getGraph
public org.apache.clerezza.rdf.core.Graph getGraph(org.apache.clerezza.rdf.core.UriRef name)
throws org.apache.clerezza.rdf.core.access.NoSuchEntityException
- Specified by:
getGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
- Throws:
org.apache.clerezza.rdf.core.access.NoSuchEntityException
getMGraph
public org.apache.clerezza.rdf.core.MGraph getMGraph(org.apache.clerezza.rdf.core.UriRef name)
throws org.apache.clerezza.rdf.core.access.NoSuchEntityException
- Specified by:
getMGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
- Throws:
org.apache.clerezza.rdf.core.access.NoSuchEntityException
getTriples
public org.apache.clerezza.rdf.core.TripleCollection getTriples(org.apache.clerezza.rdf.core.UriRef name)
throws org.apache.clerezza.rdf.core.access.NoSuchEntityException
- Specified by:
getTriples in interface org.apache.clerezza.rdf.core.access.TcProvider
- Throws:
org.apache.clerezza.rdf.core.access.NoSuchEntityException
listGraphs
public java.util.Set<org.apache.clerezza.rdf.core.UriRef> listGraphs()
- Specified by:
listGraphs in interface org.apache.clerezza.rdf.core.access.TcProvider
listMGraphs
public java.util.Set<org.apache.clerezza.rdf.core.UriRef> listMGraphs()
- Specified by:
listMGraphs in interface org.apache.clerezza.rdf.core.access.TcProvider
listTripleCollections
public java.util.Set<org.apache.clerezza.rdf.core.UriRef> listTripleCollections()
- Specified by:
listTripleCollections in interface org.apache.clerezza.rdf.core.access.TcProvider
createMGraph
public org.apache.clerezza.rdf.core.MGraph createMGraph(org.apache.clerezza.rdf.core.UriRef name)
throws java.lang.UnsupportedOperationException,
org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException
- Specified by:
createMGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
- Throws:
java.lang.UnsupportedOperationException
org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException
createGraph
public org.apache.clerezza.rdf.core.Graph createGraph(org.apache.clerezza.rdf.core.UriRef name,
org.apache.clerezza.rdf.core.TripleCollection triples)
throws java.lang.UnsupportedOperationException,
org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException
- Specified by:
createGraph in interface org.apache.clerezza.rdf.core.access.TcProvider
- Throws:
java.lang.UnsupportedOperationException
org.apache.clerezza.rdf.core.access.EntityAlreadyExistsException
deleteTripleCollection
public void deleteTripleCollection(org.apache.clerezza.rdf.core.UriRef name)
throws java.lang.UnsupportedOperationException,
org.apache.clerezza.rdf.core.access.NoSuchEntityException,
org.apache.clerezza.rdf.core.access.EntityUndeletableException
- Specified by:
deleteTripleCollection in interface org.apache.clerezza.rdf.core.access.TcProvider
- Throws:
java.lang.UnsupportedOperationException
org.apache.clerezza.rdf.core.access.NoSuchEntityException
org.apache.clerezza.rdf.core.access.EntityUndeletableException
getNames
public java.util.Set<org.apache.clerezza.rdf.core.UriRef> getNames(org.apache.clerezza.rdf.core.Graph graph)
- Specified by:
getNames in interface org.apache.clerezza.rdf.core.access.TcProvider
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged in interface org.osgi.framework.BundleListener
activate
protected void activate(org.osgi.service.component.ComponentContext componentContext)
deactivate
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
Copyright © 2011. All Rights Reserved.