public class FilterNormalizingVisitor extends Object implements org.apache.directory.api.ldap.model.filter.FilterVisitor
Constructor and Description |
---|
FilterNormalizingVisitor(org.apache.directory.api.ldap.model.schema.normalizers.NameComponentNormalizer ncn,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a new instance of NormalizingVisitor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canVisit(org.apache.directory.api.ldap.model.filter.ExprNode node) |
List<org.apache.directory.api.ldap.model.filter.ExprNode> |
getOrder(org.apache.directory.api.ldap.model.filter.BranchNode node,
List<org.apache.directory.api.ldap.model.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.api.ldap.model.filter.ExprNode node)
Visit the tree, normalizing the leaves and recusrsively visit the branches.
|
public FilterNormalizingVisitor(org.apache.directory.api.ldap.model.schema.normalizers.NameComponentNormalizer ncn, org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
ncn
- The name component normalizer to useschemaManager
- The schemaManagerpublic static boolean isFilterChar(char c)
c
- the char we want to testpublic Object visit(org.apache.directory.api.ldap.model.filter.ExprNode node)
visit
in interface org.apache.directory.api.ldap.model.filter.FilterVisitor
node
- the node to visitpublic boolean canVisit(org.apache.directory.api.ldap.model.filter.ExprNode node)
canVisit
in interface org.apache.directory.api.ldap.model.filter.FilterVisitor
public boolean isPrefix()
isPrefix
in interface org.apache.directory.api.ldap.model.filter.FilterVisitor
public List<org.apache.directory.api.ldap.model.filter.ExprNode> getOrder(org.apache.directory.api.ldap.model.filter.BranchNode node, List<org.apache.directory.api.ldap.model.filter.ExprNode> children)
getOrder
in interface org.apache.directory.api.ldap.model.filter.FilterVisitor
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.