01: package org.ontoware.rdfreactor.runtime;
02:
03: import org.ontoware.rdf2go.model.QueryRow;
04:
05: public class OOQueryRowImpl implements OOQueryRow {
06:
07: private QueryRow row;
08:
09: private OOQueryResultTableImpl ooQueryResultTable;
10:
11: public OOQueryRowImpl(QueryRow rdf2go) {
12: this .row = rdf2go;
13: }
14:
15: public OOQueryRowImpl(OOQueryResultTableImpl ooQueryResultTable,
16: QueryRow rdf2go) {
17: this .row = rdf2go;
18: this .ooQueryResultTable = ooQueryResultTable;
19: }
20:
21: public Object getValue(String varname) {
22: return RDFReactorRuntime.node2javatype(ooQueryResultTable
23: .getModel(), row.getValue(varname), ooQueryResultTable
24: .getReturnType(varname));
25: }
26:
27: }
|