java.lang.Object
org.apache.jena.sparql.function.FunctionRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionRegistrycreateFrom(FunctionRegistry from) Copies the origin registry into a new one, or makes a fresh instance if the specified registry isnull.static FunctionRegistryget()Lookup by URIstatic FunctionRegistrystatic voidinit()booleanisRegistered(String uri) keys()Iterate over URIsvoidInsert a class that is the function implementationvoidput(String uri, FunctionFactory f) Insert a function.Remove by URIstatic voidset(Context context, FunctionRegistry reg) static FunctionRegistry
-
Constructor Details
-
FunctionRegistry
public FunctionRegistry()
-
-
Method Details
-
standardRegistry
-
init
public static void init() -
get
-
get
-
set
-
createFrom
Copies the origin registry into a new one, or makes a fresh instance if the specified registry isnull.- Parameters:
from-FunctionRegistryornull- Returns:
FunctionRegistrya new instance
-
put
Insert a class that is the function implementation- Parameters:
uri- String URIfuncClass- Class for the function (new instance called).
-
put
Insert a function. Re-inserting with the same URI overwrites the old entry.- Parameters:
uri-f-
-
get
Lookup by URI -
isRegistered
-
remove
Remove by URI -
keys
Iterate over URIs
-