com.hp.hpl.jena.sparql.pfunction
Class PropertyFunctionRegistry

java.lang.Object
  extended by com.hp.hpl.jena.sparql.pfunction.PropertyFunctionRegistry

public class PropertyFunctionRegistry
extends Object


Constructor Summary
PropertyFunctionRegistry()
           
 
Method Summary
static PropertyFunctionRegistry get()
           
static PropertyFunctionRegistry get(Context context)
           
 PropertyFunctionFactory get(String uri)
          Lookup by URI
 boolean isRegistered(String uri)
           
 Iterator<String> keys()
          Iterate over URIs
 boolean manages(String uri)
           
 void put(String uri, Class<?> extClass)
          Insert an PropertyFunction class.
 void put(String uri, PropertyFunctionFactory factory)
          Insert an PropertyFunction factory.
 PropertyFunctionFactory remove(String uri)
          Remove by URI
static void set(Context context, PropertyFunctionRegistry reg)
           
static PropertyFunctionRegistry standardRegistry()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFunctionRegistry

public PropertyFunctionRegistry()
Method Detail

standardRegistry

public static PropertyFunctionRegistry standardRegistry()

get

public static PropertyFunctionRegistry get(Context context)

set

public static void set(Context context,
                       PropertyFunctionRegistry reg)

get

public static PropertyFunctionRegistry get()

put

public void put(String uri,
                PropertyFunctionFactory factory)
Insert an PropertyFunction factory. Re-inserting with the same URI overwrites the old entry.

Parameters:
uri - String URI for the PropertyFunction
factory - Factory to make PropertyFunction instances

put

public void put(String uri,
                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 PropertyFunction
extClass - The Java class

manages

public boolean manages(String uri)

get

public PropertyFunctionFactory get(String uri)
Lookup by URI


isRegistered

public boolean isRegistered(String uri)

remove

public PropertyFunctionFactory remove(String uri)
Remove by URI


keys

public Iterator<String> keys()
Iterate over URIs



Licenced under the Apache License, Version 2.0