java.lang.Object
org.apache.jena.sparql.lang.SPARQLParserRegistry
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Syntax syntax, SPARQLParserFactory f) Register the given parser factory for the specified syntax.static void
addFactory
(Syntax syntax, SPARQLParserFactory f) Register the given parser factory for the specified syntax.boolean
containsFactory
(Syntax syntax) Checks whether a parser factory is registered for the given syntaxstatic boolean
containsParserFactory
(Syntax syntax) Checks whether a parser factory is registered for the given syntaxcreateParser
(Syntax syntax) Return a suitable parser for the given syntaxstatic SPARQLParserFactory
findFactory
(Syntax syntax) Return a suitable factory for the given syntaxstatic SPARQLParserRegistry
get()
getFactory
(Syntax syntax) Return a suitable parser factory for the given syntaxstatic SPARQLParser
Return a suitable parser for the given syntaxvoid
Unregister the parser factory associated with the given syntaxstatic void
removeFactory
(Syntax syntax) Unregister the parser factory associated with the given syntax
-
Method Details
-
get
-
findFactory
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
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
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
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
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
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
Unregister the parser factory associated with the given syntax -
remove
Unregister the parser factory associated with the given syntax -
containsParserFactory
Checks whether a parser factory is registered for the given syntax -
containsFactory
Checks whether a parser factory is registered for the given syntax
-