|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsrc.server.QueryParser
Handles all parsing of queries. Takes a query in swedish and tries to match the query to a specific operation.
| Method Summary | |
void |
addModuleQueryRule(ModuleQueryRule rule)
Adds a new ServerQueryRule to the parser's list. |
void |
addModuleSettingRule(ModuleQueryRule rule)
Adds a new ModuleQueryRule to the parser's settings list. |
void |
addServerQueryRule(ServerQueryRule rule)
Adds a new ServerQueryRule to the parser's list. |
static QueryParser |
getInstance()
|
Package |
parseQuery(java.lang.String query,
RecipientTag recipient)
Parses a query into an unambigious query which is returned in the form of a package. |
void |
removeModuleQueryRule(ModuleQueryRule rule)
Removes an existing ModuleQueryRule from the parser's list. |
void |
removeModuleSettingRule(ModuleQueryRule rule)
Removes an existing ModuleQueryRule from the parser's settings list. |
void |
removeServerQueryRule(ServerQueryRule rule)
Removes an existing ServerQueryRule from the parser's list. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static QueryParser getInstance()
public Package parseQuery(java.lang.String query,
RecipientTag recipient)
query - The query to parse.recipient - The recipient tag to put on the resulting
package.
public void addServerQueryRule(ServerQueryRule rule)
rule - The rule to add.public void removeServerQueryRule(ServerQueryRule rule)
rule - The rule to remove.public void addModuleQueryRule(ModuleQueryRule rule)
rule - The rule to add.public void removeModuleQueryRule(ModuleQueryRule rule)
rule - The rule to remove.public void addModuleSettingRule(ModuleQueryRule rule)
rule - The rule to add.public void removeModuleSettingRule(ModuleQueryRule rule)
rule - The rule to remove.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||