Package org.mycore.parsers.bool
Class MCRBooleanClauseParser<T>
java.lang.Object
org.mycore.parsers.bool.MCRBooleanClauseParser<T>
- Direct Known Subclasses:
MCRQueryParser
,MCRRuleParser
Class for parsing Boolean clauses
- Author:
- Matthias Kramm, Christoph Neidahl (OPNA2608)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MCRCondition<T>
Parse a complex or simple condition in String format and put it in an condition object.Parse a complex or simple condition in XML format and put it in an condition object.protected MCRCondition<T>
protected MCRCondition<T>
parseSimpleCondition
(Element element)
-
Constructor Details
-
MCRBooleanClauseParser
public MCRBooleanClauseParser()
-
-
Method Details
-
parse
Parse a complex or simple condition in XML format and put it in an condition object.- Parameters:
condition
- a MyCoRe condition object in XML format- Returns:
- a MyCoRe condition object in the MCRCondition format
-
parse
Parse a complex or simple condition in String format and put it in an condition object.- Parameters:
s
- a MyCoRe condition object in String format- Returns:
- a MyCoRe condition object in the MCRCondition format
- Throws:
MCRParseException
-
parseSimpleCondition
- Throws:
MCRParseException
-
parseSimpleCondition
- Throws:
MCRParseException
-
defaultRule
-