|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.parsers.bool.MCRBooleanClauseParser
org.mycore.services.fieldquery.MCRQueryParser
public class MCRQueryParser
Parses query conditions for use in MCRSearcher.
MCRSearcher| Constructor Summary | |
|---|---|
MCRQueryParser()
|
|
| Method Summary | |
|---|---|
(package private) static MCRCondition |
normalizeCondition(MCRCondition cond)
Normalizes a parsed query condition. |
MCRCondition |
parse(Element condition)
|
MCRCondition |
parse(String s)
|
protected MCRCondition |
parseSimpleCondition(Element e)
Parses XML element containing a simple query condition |
protected MCRCondition |
parseSimpleCondition(String s)
Parses a String containing a simple query condition, for example: (title contains "Java") and (creatorID = "122132131") |
static boolean |
validateQueryExpression(String query)
Used for input validation in editor search form |
| Methods inherited from class org.mycore.parsers.bool.MCRBooleanClauseParser |
|---|
defaultRule, main |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRQueryParser()
| Method Detail |
|---|
protected MCRCondition parseSimpleCondition(Element e)
throws MCRParseException
parseSimpleCondition in class MCRBooleanClauseParsere - the 'condition' element
MCRParseException
protected MCRCondition parseSimpleCondition(String s)
throws MCRParseException
parseSimpleCondition in class MCRBooleanClauseParsers - the condition as a String
MCRParseException
public MCRCondition parse(Element condition)
throws MCRParseException
parse in class MCRBooleanClauseParserMCRParseException
public MCRCondition parse(String s)
throws MCRParseException
parse in class MCRBooleanClauseParserMCRParseExceptionstatic MCRCondition normalizeCondition(MCRCondition cond)
public static boolean validateQueryExpression(String query)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||