Class SPARQLParserRegistry

java.lang.Object
org.apache.jena.sparql.lang.SPARQLParserRegistry

public class SPARQLParserRegistry extends Object
  • Method Details

    • get

      public static SPARQLParserRegistry get()
    • findFactory

      public static SPARQLParserFactory findFactory(Syntax syntax)
      Return a suitable factory for the given syntax
      Parameters:
      syntax - the syntax to be processed
      Returns:
      a parser factory or null if none accept the request
    • parser

      public static SPARQLParser parser(Syntax syntax)
      Return a suitable parser for the given syntax
      Parameters:
      syntax - the syntax to be processed
      Returns:
      a parser or null if none accept the request
    • getFactory

      public SPARQLParserFactory getFactory(Syntax syntax)
      Return a suitable parser factory for the given syntax
      Parameters:
      syntax - the syntax to be processed
      Returns:
      a parser factory or null if none accept the request
    • createParser

      public SPARQLParser createParser(Syntax syntax)
      Return a suitable parser for the given syntax
      Parameters:
      syntax - the syntax to be processed
      Returns:
      a parser or null if none accept the request
    • addFactory

      public static void addFactory(Syntax syntax, SPARQLParserFactory f)
      Register the given parser factory for the specified syntax. If another factory is registered for the syntax it is replaced by the given one.
    • add

      public void add(Syntax syntax, SPARQLParserFactory f)
      Register the given parser factory for the specified syntax. If another factory is registered for the syntax it is replaced by the given one.
    • removeFactory

      public static void removeFactory(Syntax syntax)
      Unregister the parser factory associated with the given syntax
    • remove

      public void remove(Syntax syntax)
      Unregister the parser factory associated with the given syntax
    • containsParserFactory

      public static boolean containsParserFactory(Syntax syntax)
      Checks whether a parser factory is registered for the given syntax
    • containsFactory

      public boolean containsFactory(Syntax syntax)
      Checks whether a parser factory is registered for the given syntax