org.apache.stanbol.enhancer.servicesapi.helper.impl
Class SimpleRdfEntityFactory

java.lang.Object
  extended by org.apache.stanbol.enhancer.servicesapi.helper.RdfEntityFactory
      extended by org.apache.stanbol.enhancer.servicesapi.helper.impl.SimpleRdfEntityFactory

public class SimpleRdfEntityFactory
extends RdfEntityFactory


Constructor Summary
SimpleRdfEntityFactory(org.apache.clerezza.rdf.core.MGraph graph)
           
 
Method Summary
protected  org.apache.clerezza.rdf.core.MGraph getGraph()
           
<T extends RdfEntity>
T
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

SimpleRdfEntityFactory

public SimpleRdfEntityFactory(org.apache.clerezza.rdf.core.MGraph graph)
Method Detail

getProxy

public <T extends RdfEntity> T getProxy(org.apache.clerezza.rdf.core.NonLiteral rdfNode,
                                        java.lang.Class<T> type,
                                        java.lang.Class<?>... additionalInterfaces)
Description copied from class: RdfEntityFactory
Getter for a proxy for the parsed rdf node that implements all the parsed Interfaces. The interface parsed as type must extend RdfEntity. Additional interfaces must not extend this interface.

Interfaces parsed as parameter:

Proxies returned by this Factory:

Specified by:
getProxy in class RdfEntityFactory
Type Parameters:
T - The interface implemented by the returned proxy
Parameters:
rdfNode - the rdfNode represented by the proxy (created if not present in the Graph)
type - The interface for the proxy. Needs to extend RdfEntity
additionalInterfaces - Additional interfaces the proxy needs to implement.
Returns:
A proxy representing the parsed rdf node and implementing all the parsed interfaces

getGraph

protected org.apache.clerezza.rdf.core.MGraph getGraph()


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.