
org.ontoware.rdfreactor.runtime.INodeConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdfreactor.runtime Show documentation
Show all versions of rdfreactor.runtime Show documentation
RDFReactor creates domain-specific, type-safe Java classes which
act as a view over domain-free, loosely typed RDF instances.
This library needs to be shipped together with generated
classes.
The newest version!
package org.ontoware.rdfreactor.runtime;
import org.ontoware.rdf2go.model.Model;
import org.ontoware.rdf2go.model.node.Node;
/**
* Can convert an RDF2Go node (or null) to the java type T
*
* @author voelkel
*
* @param
*/
@Patrolled
public interface INodeConverter {
T toJava(Node node);
/**
* @param model an RDF2Go model
* @param javaType must be of type T
* @return an RDF2Go nod with the value of javaValue
*/
Node toNode(Model model, Object javaValue);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy