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()Deprecated, for removal: This API element is subject to removal in a future version.static FunctionRegistrygetFunction(String uri) Get a ARQ expressionFunction.getFunctionFactory(String uri) Lookup by URIstatic voidinit()booleanisRegistered(String uri) keys()Iterate over URIsInsert a class that is the function implementationput(String uri, FunctionFactory f) Insert a function.voidRemove 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).- Returns:
- This registry
-
put
Insert a function. Re-inserting with the same URI overwrites the old entry.- Parameters:
uri-f-- Returns:
- This registry
-
get
Deprecated, for removal: This API element is subject to removal in a future version. -
getFunctionFactory
Lookup by URI -
getFunction
Get a ARQ expressionFunction. Return null if the URI does not map to a registered entry. -
isRegistered
-
remove
Remove by URI -
keys
Iterate over URIs
-
getFunctionFactory(java.lang.String)