Class IteratorFunctionRegistry


  • public class IteratorFunctionRegistry
    extends java.lang.Object
    Registry of iterator functions.
    Author:
    Maxime Lefrançois
    • Constructor Detail

      • IteratorFunctionRegistry

        public IteratorFunctionRegistry()
      • IteratorFunctionRegistry

        public IteratorFunctionRegistry​(Context context)
    • Method Detail

      • put

        public void put​(java.lang.String uri,
                        java.lang.Class<?> funcClass)
        Insert a class that is the iterator function implementation
        Parameters:
        uri - String URI
        funcClass - Class for the function (new instance called).
      • put

        public void put​(java.lang.String uri,
                        IteratorFunctionFactory f)
        Insert a iterator. Re-inserting with the same URI overwrites the old entry.
        Parameters:
        uri -
        f -
      • isRegistered

        public boolean isRegistered​(java.lang.String uri)
      • keys

        public java.util.Iterator<java.lang.String> keys()
        Iterate over URIs
      • remove

        public IteratorFunctionFactory remove​(java.lang.String uri)
        Remove by URI
        Parameters:
        uri -
        Returns: