java.lang.Object
org.apache.jena.sparql.pfunction.PropertyFunctionRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyFunctionRegistrychooseRegistry(Context context) Get the PropertyFunctionRegistry, defaulting to the global onestatic PropertyFunctionRegistryCopies the origin registry into a new one, or makes a fresh instance if the specified registry isnull.static PropertyFunctionRegistryget()Lookup by URIstatic PropertyFunctionRegistrystatic voidinit()booleanisRegistered(String uri) keys()Iterate over URIsbooleanvoidInsert an PropertyFunction class.voidput(String uri, PropertyFunctionFactory factory) Insert an PropertyFunction factory.Remove by URIstatic voidset(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-PropertyFunctionRegistryornull- Returns:
PropertyFunctionRegistrya 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
-