Package org.apache.jena.sparql.pfunction
Class PropertyFunctionRegistry
- java.lang.Object
-
- org.apache.jena.sparql.pfunction.PropertyFunctionRegistry
-
public class PropertyFunctionRegistry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PropertyFunctionRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyFunctionRegistrychooseRegistry(Context context)Get the PropertyFunctionRegistry, defaulting to the global onestatic PropertyFunctionRegistryget()PropertyFunctionFactoryget(java.lang.String uri)Lookup by URIstatic PropertyFunctionRegistryget(Context context)static voidinit()booleanisRegistered(java.lang.String uri)java.util.Iterator<java.lang.String>keys()Iterate over URIsbooleanmanages(java.lang.String uri)voidput(java.lang.String uri, java.lang.Class<?> extClass)Insert an PropertyFunction class.voidput(java.lang.String uri, PropertyFunctionFactory factory)Insert an PropertyFunction factory.PropertyFunctionFactoryremove(java.lang.String uri)Remove by URIstatic voidset(Context context, PropertyFunctionRegistry reg)static PropertyFunctionRegistrystandardRegistry()
-
-
-
Method Detail
-
standardRegistry
public static PropertyFunctionRegistry standardRegistry()
-
init
public static void init()
-
get
public static PropertyFunctionRegistry get(Context context)
-
chooseRegistry
public static PropertyFunctionRegistry chooseRegistry(Context context)
Get the PropertyFunctionRegistry, defaulting to the global one
-
set
public static void set(Context context, PropertyFunctionRegistry reg)
-
get
public static PropertyFunctionRegistry get()
-
put
public void put(java.lang.String uri, java.lang.Class<?> extClass)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
public void put(java.lang.String uri, PropertyFunctionFactory factory)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
public boolean manages(java.lang.String uri)
-
get
public PropertyFunctionFactory get(java.lang.String uri)
Lookup by URI
-
isRegistered
public boolean isRegistered(java.lang.String uri)
-
remove
public PropertyFunctionFactory remove(java.lang.String uri)
Remove by URI
-
keys
public java.util.Iterator<java.lang.String> keys()
Iterate over URIs
-
-