public final class FilterParser extends Object
Modifier and Type | Method and Description |
---|---|
static ExprNode |
parse(SchemaManager schemaManager,
String filter)
Parses a search filter from it's string representation to an expression node object,
using the provided SchemaManager
|
static ExprNode |
parse(SchemaManager schemaManager,
String filter,
boolean relaxed)
Parses a search filter from it's string representation to an expression node object,
using the provided SchemaManager
|
static ExprNode |
parse(String filter)
Parses a search filter from it's string representation to an expression node object.
|
static ExprNode |
parse(String filter,
boolean relaxed)
Parses a search filter from it's string representation to an expression node object.
|
public static ExprNode parse(String filter) throws ParseException
filter
- the search filter in it's string representationParseException
- If the filter is invalidpublic static ExprNode parse(String filter, boolean relaxed) throws ParseException
relaxed
mode the filter may violate RFC 4515, e.g. the underscore in attribute names is allowed.filter
- the search filter in it's string representationrelaxed
- true
to parse the filter in relaxed modeParseException
- If the filter is invalidpublic static ExprNode parse(SchemaManager schemaManager, String filter) throws ParseException
schemaManager
- The SchemaManager to usefilter
- the search filter in it's string representationParseException
- If the filter is invalidpublic static ExprNode parse(SchemaManager schemaManager, String filter, boolean relaxed) throws ParseException
schemaManager
- The SchemaManager to usefilter
- the search filter in it's string representationrelaxed
- true
to parse the filter in relaxed modeParseException
- If the filter is invalidCopyright © 2003–2021 The Apache Software Foundation. All rights reserved.