public class FilterParser extends Object
Constructor and Description |
---|
FilterParser()
Creates a filter parser implementation.
|
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 FilterParser()
public static ExprNode parse(String filter) throws ParseException
filter
- the search filter in it's string representationParseException
public static ExprNode parse(byte[] filter) throws ParseException
ParseException
parse(String)
public static ExprNode parse(SchemaManager schemaManager, String filter) throws ParseException
ParseException
parse(String)
public static ExprNode parse(SchemaManager schemaManager, byte[] filter) throws ParseException
ParseException
parse(String)
public static ExprNode parse(SchemaManager schemaManager, String filter, Position pos) throws ParseException
ParseException
parse(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
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.