|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.stanbol.enhancer.servicesapi.helper.RdfEntityFactory
org.apache.stanbol.enhancer.servicesapi.helper.impl.SimpleRdfEntityFactory
public class SimpleRdfEntityFactory
| Constructor Summary | |
|---|---|
SimpleRdfEntityFactory(org.apache.clerezza.rdf.core.MGraph graph)
|
|
| Method Summary | ||
|---|---|---|
protected org.apache.clerezza.rdf.core.MGraph |
getGraph()
|
|
|
getProxy(org.apache.clerezza.rdf.core.NonLiteral rdfNode,
java.lang.Class<T> type,
java.lang.Class<?>... additionalInterfaces)
Getter for a proxy for the parsed rdf node that implements all the parsed Interfaces. |
|
| Methods inherited from class org.apache.stanbol.enhancer.servicesapi.helper.RdfEntityFactory |
|---|
createInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleRdfEntityFactory(org.apache.clerezza.rdf.core.MGraph graph)
| Method Detail |
|---|
public <T extends RdfEntity> T getProxy(org.apache.clerezza.rdf.core.NonLiteral rdfNode,
java.lang.Class<T> type,
java.lang.Class<?>... additionalInterfaces)
RdfEntityFactoryRdfEntity.
Additional interfaces must not extend this interface.
Interfaces parsed as parameter:
Rdf annotation. If that is the case, than the
according rdf:type statements are checks/added when the proxy is created
Rdf
annotations. Calling methods with missing annotations causes an
IllegalStateException at runtime
MGraph instance. Direct changes to
the graph need to be reflected in calls to proxies.
Collection as parameter.
Collections need to represent a live view over the triples within the
MGraph. However iterators may throw a
ConcurrentModificationException if the graph changes while using
the iterator.
getProxy in class RdfEntityFactoryT - The interface implemented by the returned proxyrdfNode - the rdfNode represented by the proxy (created if not
present in the Graph)type - The interface for the proxy. Needs to extend RdfEntityadditionalInterfaces - Additional interfaces the proxy needs to
implement.
protected org.apache.clerezza.rdf.core.MGraph getGraph()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||