java.lang.Object
org.apache.jena.reasoner.rulesys.BuiltinRegistry
org.apache.jena.reasoner.rulesys.MapBuiltinRegistry
A registry for mapping functor names on java objects (instances
of subclasses of Builtin) which implement their behaviour.
This is currently implemented as a singleton to simply any future move to support different sets of builtins.
- See Also:
-
Field Summary
Fields inherited from class org.apache.jena.reasoner.rulesys.BuiltinRegistry
theRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImplementation(String functor) Find the implementation of the given builtin functor.Find the implementation of the given builtin functor.voidRegister an implementation for a given builtin functor.voidRegister an implementation for a given builtin using its default name.
-
Constructor Details
-
MapBuiltinRegistry
public MapBuiltinRegistry()Construct an empty registry
-
-
Method Details
-
register
Description copied from class:BuiltinRegistryRegister an implementation for a given builtin functor.- Specified by:
registerin classBuiltinRegistry- Parameters:
functor- the name of the functor used to invoke the builtinimpl- the implementation of the builtin
-
register
Description copied from class:BuiltinRegistryRegister an implementation for a given builtin using its default name.- Specified by:
registerin classBuiltinRegistry- Parameters:
impl- the implementation of the builtin
-
getImplementation
Description copied from class:BuiltinRegistryFind the implementation of the given builtin functor.- Specified by:
getImplementationin classBuiltinRegistry- Parameters:
functor- the name of the functor being invoked.- Returns:
- a Builtin or null if there is none registered under that name
-
getImplementationByURI
Description copied from class:BuiltinRegistryFind the implementation of the given builtin functor.- Specified by:
getImplementationByURIin classBuiltinRegistry- Parameters:
uri- the URI of the builtin to be retrieved- Returns:
- a Builtin or null if there is none registered under that name
-