Package org.apache.jena.sparql.lang
Class UpdateParserRegistry
- java.lang.Object
-
- org.apache.jena.sparql.lang.UpdateParserRegistry
-
public class UpdateParserRegistry extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Syntax syntax, UpdateParserFactory f)
Register the given parser factory for the specified syntax.static void
addFactory(Syntax syntax, UpdateParserFactory 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 syntaxUpdateParser
createParser(Syntax syntax)
Return a suitable parser for the given syntaxstatic UpdateParserFactory
findFactory(Syntax syntax)
Return a suitable factory for the given syntaxstatic UpdateParserRegistry
get()
UpdateParserFactory
getFactory(Syntax syntax)
Return a suitable parser factory for the given syntaxstatic UpdateParser
parser(Syntax syntax)
Return a suitable parser for the given syntaxvoid
remove(Syntax syntax)
Unregister the parser factory associated with the given syntaxstatic void
removeFactory(Syntax syntax)
Unregister the parser factory associated with the given syntax
-
-
-
Method Detail
-
get
public static UpdateParserRegistry get()
-
findFactory
public static UpdateParserFactory 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 UpdateParser 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 UpdateParserFactory 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 UpdateParser 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, UpdateParserFactory 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, UpdateParserFactory 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
-
-