public class UpdateParserRegistry extends Object
Modifier and Type | Method and 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 syntax
|
static boolean |
containsParserFactory(Syntax syntax)
Checks whether a parser factory is registered for the given syntax
|
UpdateParser |
createParser(Syntax syntax)
Return a suitable parser for the given syntax
|
static UpdateParserFactory |
findFactory(Syntax syntax)
Return a suitable factory for the given syntax
|
static UpdateParserRegistry |
get() |
UpdateParserFactory |
getFactory(Syntax syntax)
Return a suitable parser factory for the given syntax
|
static UpdateParser |
parser(Syntax syntax)
Return a suitable parser for the given syntax
|
void |
remove(Syntax syntax)
Unregister the parser factory associated with the given syntax
|
static void |
removeFactory(Syntax syntax)
Unregister the parser factory associated with the given syntax
|
public static UpdateParserRegistry get()
public static UpdateParserFactory findFactory(Syntax syntax)
syntax
- the syntax to be processedpublic static UpdateParser parser(Syntax syntax)
syntax
- the syntax to be processedpublic UpdateParserFactory getFactory(Syntax syntax)
syntax
- the syntax to be processedpublic UpdateParser createParser(Syntax syntax)
syntax
- the syntax to be processedpublic static void addFactory(Syntax syntax, UpdateParserFactory f)
public void add(Syntax syntax, UpdateParserFactory f)
public static void removeFactory(Syntax syntax)
public void remove(Syntax syntax)
public static boolean containsParserFactory(Syntax syntax)
public boolean containsFactory(Syntax syntax)
Licenced under the Apache License, Version 2.0