Class IteratorFunctionRegistry
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionRegistry
-
public class IteratorFunctionRegistry extends Object
Registry of iterator functions.- Author:
- Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description IteratorFunctionRegistry()
IteratorFunctionRegistry(IteratorFunctionRegistry parent, Context context)
IteratorFunctionRegistry(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IteratorFunctionRegistry
get()
IteratorFunctionFactory
get(String uri)
Lookup by URIstatic IteratorFunctionRegistry
get(Context context)
boolean
isRegistered(String uri)
Iterator<String>
keys()
Iterate over URIsvoid
put(String uri, IteratorFunctionFactory f)
Insert a iterator.void
put(String uri, Class<?> funcClass)
Insert a class that is the iterator function implementationIteratorFunctionFactory
remove(String uri)
Remove by URIstatic void
set(Context context, IteratorFunctionRegistry reg)
static IteratorFunctionRegistry
standardRegistry()
-
-
-
Constructor Detail
-
IteratorFunctionRegistry
public IteratorFunctionRegistry()
-
IteratorFunctionRegistry
public IteratorFunctionRegistry(Context context)
-
IteratorFunctionRegistry
public IteratorFunctionRegistry(IteratorFunctionRegistry parent, Context context)
-
-
Method Detail
-
standardRegistry
public static IteratorFunctionRegistry standardRegistry()
-
get
public static IteratorFunctionRegistry get()
-
get
public static IteratorFunctionRegistry get(Context context)
-
set
public static void set(Context context, IteratorFunctionRegistry reg)
-
put
public void put(String uri, Class<?> funcClass)
Insert a class that is the iterator function implementation- Parameters:
uri
- String URIfuncClass
- Class for the function (new instance called).
-
put
public void put(String uri, IteratorFunctionFactory f)
Insert a iterator. Re-inserting with the same URI overwrites the old entry.- Parameters:
uri
-f
-
-
isRegistered
public boolean isRegistered(String uri)
-
remove
public IteratorFunctionFactory remove(String uri)
Remove by URI- Parameters:
uri
-- Returns:
-
get
public IteratorFunctionFactory get(String uri)
Lookup by URI- Returns:
- the iterator, or null
-
-