public final class FilterParser extends Object
Modifier and Type | Method and Description |
---|---|
static ExprNode |
parse(byte[] filter) |
static ExprNode |
parse(SchemaManager schemaManager,
byte[] filter) |
static ExprNode |
parse(SchemaManager schemaManager,
String filter) |
static ExprNode |
parse(SchemaManager schemaManager,
String filter,
Position pos) |
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(byte[] filter) throws ParseException
filter
- the search filter in it's string representationParseException
- If the filter is invalidparse(String)
public static ExprNode parse(SchemaManager schemaManager, String filter) throws ParseException
schemaManager
- The SchemaManagerfilter
- the search filter in it's string representationParseException
- If the filter is invalidparse(String)
public static ExprNode parse(SchemaManager schemaManager, byte[] filter) throws ParseException
schemaManager
- The SchemaManagerfilter
- the search filter in it's string representationParseException
- If the filter is invalidparse(String)
public static ExprNode parse(SchemaManager schemaManager, String filter, Position pos) throws ParseException
schemaManager
- The SchemaManagerfilter
- the search filter in it's string representationpos
- The position in the filterParseException
- If the filter is invalidparse(String)
public 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 invalidCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.