com.hp.hpl.jena.sparql.function
Class FunctionEnvBase

java.lang.Object
  extended by com.hp.hpl.jena.sparql.function.FunctionEnvBase
All Implemented Interfaces:
FunctionEnv

public class FunctionEnvBase
extends Object
implements FunctionEnv

Environment passed to functions -- see also ExecutionContext


Constructor Summary
FunctionEnvBase()
           
FunctionEnvBase(Context context)
           
FunctionEnvBase(Context context, com.hp.hpl.jena.graph.Graph activeGraph, DatasetGraph dataset)
           
FunctionEnvBase(ExecutionContext execCxt)
           
 
Method Summary
static FunctionEnv createTest()
          Create an execution environment suitable for testing functions and expressions
 com.hp.hpl.jena.graph.Graph getActiveGraph()
          Return the active graph (the one matching is against at this point in the query.
 Context getContext()
          Return the context for this function call
 DatasetGraph getDataset()
          Return the dataset for the query
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionEnvBase

public FunctionEnvBase()

FunctionEnvBase

public FunctionEnvBase(Context context)

FunctionEnvBase

public FunctionEnvBase(ExecutionContext execCxt)

FunctionEnvBase

public FunctionEnvBase(Context context,
                       com.hp.hpl.jena.graph.Graph activeGraph,
                       DatasetGraph dataset)
Method Detail

createTest

public static FunctionEnv createTest()
Create an execution environment suitable for testing functions and expressions


getActiveGraph

public com.hp.hpl.jena.graph.Graph getActiveGraph()
Description copied from interface: FunctionEnv
Return the active graph (the one matching is against at this point in the query. May be null if unknown or not applicable - for example, doing quad store access or when sorting.

Specified by:
getActiveGraph in interface FunctionEnv

getContext

public Context getContext()
Description copied from interface: FunctionEnv
Return the context for this function call

Specified by:
getContext in interface FunctionEnv

getDataset

public DatasetGraph getDataset()
Description copied from interface: FunctionEnv
Return the dataset for the query

Specified by:
getDataset in interface FunctionEnv


Licenced under the Apache License, Version 2.0