|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.reasoner.rulesys.BuiltinRegistry
public class BuiltinRegistry
A registry for mapping functor names on java objects (instances of subclasses of Builtin) which implement their behvaiour.
This is currently implemented as a singleton to simply any future move to support different sets of builtins.
* @author Dave Reynolds * @version $Revision: 1.2 $ on $Date: 2010-03-28 11:59:36 $| Field Summary | |
|---|---|
static BuiltinRegistry |
theRegistry
The single global static registry |
| Constructor Summary | |
|---|---|
BuiltinRegistry()
Construct an empty registry |
|
| Method Summary | |
|---|---|
Builtin |
getImplementation(String functor)
Find the implementation of the given builtin functor. |
Builtin |
getImplementationByURI(String uri)
Find the implementation of the given builtin functor. |
void |
register(Builtin impl)
Register an implementation for a given builtin using its default name. |
void |
register(String functor,
Builtin impl)
Register an implementation for a given builtin functor. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static BuiltinRegistry theRegistry
| Constructor Detail |
|---|
public BuiltinRegistry()
| Method Detail |
|---|
public void register(String functor,
Builtin impl)
functor - the name of the functor used to invoke the builtinimpl - the implementation of the builtinpublic void register(Builtin impl)
impl - the implementation of the builtinpublic Builtin getImplementation(String functor)
functor - the name of the functor being invoked.
public Builtin getImplementationByURI(String uri)
uri - the URI of the builtin to be retrieved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||