public class FilterNormalizingVisitor extends Object implements org.apache.directory.shared.ldap.filter.FilterVisitor
| Constructor and Description |
|---|
FilterNormalizingVisitor(org.apache.directory.shared.ldap.name.NameComponentNormalizer ncn,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a new instance of NormalizingVisitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canVisit(org.apache.directory.shared.ldap.filter.ExprNode node) |
List<org.apache.directory.shared.ldap.filter.ExprNode> |
getOrder(org.apache.directory.shared.ldap.filter.BranchNode node,
List<org.apache.directory.shared.ldap.filter.ExprNode> children) |
static boolean |
isFilterChar(char c)
Check if the given char is a filter escaped char
<filterEscapedChars> ::= '\0' | '(' | ')' | '*' | '\'
|
boolean |
isPrefix() |
Object |
visit(org.apache.directory.shared.ldap.filter.ExprNode node)
Visit the tree, normalizing the leaves and recusrsively visit the branches.
|
public FilterNormalizingVisitor(org.apache.directory.shared.ldap.name.NameComponentNormalizer ncn,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
ncn - The name component normalizer to useregistries - The global registriespublic static boolean isFilterChar(char c)
c - the char we want to testpublic Object visit(org.apache.directory.shared.ldap.filter.ExprNode node)
visit in interface org.apache.directory.shared.ldap.filter.FilterVisitornode - the node to visitpublic boolean canVisit(org.apache.directory.shared.ldap.filter.ExprNode node)
canVisit in interface org.apache.directory.shared.ldap.filter.FilterVisitorpublic boolean isPrefix()
isPrefix in interface org.apache.directory.shared.ldap.filter.FilterVisitorCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.