java.lang.Object
org.apache.jena.sparql.pfunction.PropertyFunctionRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyFunctionRegistry
chooseRegistry
(Context context) Get the PropertyFunctionRegistry, defaulting to the global onestatic PropertyFunctionRegistry
Copies the origin registry into a new one, or makes a fresh instance if the specified registry isnull
.static PropertyFunctionRegistry
get()
Lookup by URIstatic PropertyFunctionRegistry
static void
init()
boolean
isRegistered
(String uri) keys()
Iterate over URIsboolean
void
Insert an PropertyFunction class.void
put
(String uri, PropertyFunctionFactory factory) Insert an PropertyFunction factory.Remove by URIstatic void
set
(Context context, PropertyFunctionRegistry reg) static PropertyFunctionRegistry
-
Constructor Details
-
PropertyFunctionRegistry
public PropertyFunctionRegistry()
-
-
Method Details
-
standardRegistry
-
init
public static void init() -
get
-
chooseRegistry
Get the PropertyFunctionRegistry, defaulting to the global one -
set
-
get
-
createFrom
Copies the origin registry into a new one, or makes a fresh instance if the specified registry isnull
.- Parameters:
from
-PropertyFunctionRegistry
ornull
- Returns:
PropertyFunctionRegistry
a new instance
-
put
Insert an PropertyFunction class. Re-inserting with the same URI overwrites the old entry. New instance created on retrieval (auto-factory)- Parameters:
uri
- String URI for the PropertyFunctionextClass
- The Java class
-
put
Insert an PropertyFunction factory. Re-inserting with the same URI overwrites the old entry.- Parameters:
uri
- String URI for the PropertyFunctionfactory
- Factory to make PropertyFunction instances
-
manages
-
get
Lookup by URI -
isRegistered
-
remove
Remove by URI -
keys
Iterate over URIs
-