Class SPARQLExtFunctionRegistry
- java.lang.Object
-
- org.apache.jena.sparql.function.FunctionRegistry
-
- fr.mines_stetienne.ci.sparql_generate.function.SPARQLExtFunctionRegistry
-
public class SPARQLExtFunctionRegistry extends FunctionRegistry
- Author:
- Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description SPARQLExtFunctionRegistry(FunctionRegistry parent, Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionFactory
get(String uri)
Lookup by URIboolean
isRegistered(String uri)
void
put(String uri, Class<?> funcClass)
Insert a class that is the function implementationvoid
put(String uri, FunctionFactory f)
Insert a function.FunctionFactory
remove(String uri)
Remove by URI-
Methods inherited from class org.apache.jena.sparql.function.FunctionRegistry
createFrom, get, get, init, keys, set, standardRegistry
-
-
-
-
Constructor Detail
-
SPARQLExtFunctionRegistry
public SPARQLExtFunctionRegistry(FunctionRegistry parent, Context context)
-
-
Method Detail
-
put
public void put(String uri, Class<?> funcClass)
Insert a class that is the function implementation- Overrides:
put
in classFunctionRegistry
- Parameters:
uri
- String URIfuncClass
- Class for the function (new instance called).
-
put
public void put(String uri, FunctionFactory f)
Insert a function. Re-inserting with the same URI overwrites the old entry.- Overrides:
put
in classFunctionRegistry
- Parameters:
uri
-f
-
-
isRegistered
public boolean isRegistered(String uri)
- Overrides:
isRegistered
in classFunctionRegistry
-
remove
public FunctionFactory remove(String uri)
Remove by URI- Overrides:
remove
in classFunctionRegistry
- Parameters:
uri
-- Returns:
-
get
public FunctionFactory get(String uri)
Lookup by URI- Overrides:
get
in classFunctionRegistry
- Returns:
- the function, or null
-
-