| Modifier and Type | Method and Description |
|---|---|
ExprNode |
SearchRequestDsml.getFilter()
Gets the search filter associated with this search request.
|
ExprNode |
SearchRequestDsml.getFilterNode()
Gets the search filter associated with this search request.
|
private ExprNode |
SearchRequestDsml.transform(Filter filter)
Transform the Filter part of a SearchRequest to an ExprNode
|
| Modifier and Type | Method and Description |
|---|---|
SearchRequest |
SearchRequestDsml.setFilter(ExprNode filter)
Sets the search filter associated with this search request.
|
private void |
SearchRequestDsml.toDsml(org.dom4j.Element element,
ExprNode filter)
Recursively converts the filter of the Search Request into a DSML representation and adds
it to the XML Element corresponding to the Search Request
|
| Modifier and Type | Method and Description |
|---|---|
ExprNode |
AntlrACIItemParser.refinement() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ExprNode> |
AntlrACIItemParser.refinements() |
| Modifier and Type | Field and Description |
|---|---|
private ExprNode |
ClassesItem.classes
The classes refinement.
|
private ExprNode |
RangeOfValuesItem.filter
The filter.
|
| Modifier and Type | Method and Description |
|---|---|
ExprNode |
ClassesItem.getClasses()
Gets the classes refinement.
|
ExprNode |
RangeOfValuesItem.getRefinement()
Gets the filter.
|
| Constructor and Description |
|---|
ClassesItem(ExprNode classes)
Creates a new instance.
|
RangeOfValuesItem(ExprNode filter)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ExprNode |
SearchRequestDecorator.getFilter()
Gets the search filter associated with this search request.
|
ExprNode |
SearchRequestDecorator.getFilterNode()
Gets the search filter associated with this search request.
|
private ExprNode |
SearchRequestDecorator.transform(Filter filter)
Transform the Filter part of a SearchRequest to an ExprNode
|
| Modifier and Type | Method and Description |
|---|---|
SearchRequest |
SearchRequestDecorator.setFilter(ExprNode filter)
Sets the search filter associated with this search request.
|
private static Filter |
SearchRequestDecorator.transform(ExprNode exprNode)
Transform an ExprNode filter to a Filter
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExprNode
Abstract implementation of a expression node.
|
class |
AndNode
Node representing an AND connector in a filter operation
|
class |
ApproximateNode<T>
A simple assertion value node.
|
class |
AssertionNode
Node used for the application of arbitrary predicates on return candidates.
|
class |
BranchNode
Node representing branches within the expression tree corresponding to
logical operators within the filter expression.
|
class |
EqualityNode<T>
A assertion value node for Equality.
|
class |
ExtensibleNode
Filter expression tree node for extensible assertions.
|
class |
GreaterEqNode<T>
A assertion value node for GreaterOrEqual.
|
class |
LeafNode
Abstract base class for leaf nodes within the expression filter tree.
|
class |
LessEqNode<T>
A assertion value node for LessOrEqual.
|
class |
NotNode
Node representing an Not connector in a filter operation
|
class |
ObjectClassNode
An empty class used for the (ObjectClass=*) node.
|
class |
OrNode
Node representing an OR connector in a filter operation
|
class |
PresenceNode
Filter expression tree node representing a filter attribute value assertion
for presence.
|
class |
ScopeNode
Node used not to represent a published assertion but an assertion on the
scope of the search.
|
class |
SimpleNode<T>
A simple assertion value node.
|
class |
SubstringNode
Filter expression tree node used to represent a substring assertion.
|
class |
UndefinedNode
An empty class used for Undefined Nodes.
|
| Modifier and Type | Field and Description |
|---|---|
static ExprNode |
ObjectClassNode.OBJECT_CLASS_NODE
A static instance of this node
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ExprNode> |
BranchNode.children
child node list for this branch node
|
| Modifier and Type | Method and Description |
|---|---|
ExprNode |
SubstringNode.clone()
Clone the Node
|
ExprNode |
ExtensibleNode.clone()
Makes a full clone in new memory space of the current node and children
|
ExprNode |
AssertionNode.clone()
Makes a full clone in new memory space of the current node and children
|
ExprNode |
SimpleNode.clone()
Makes a full clone in new memory space of the current node and children
|
ExprNode |
ExprNode.clone()
Clone this expression node.
|
ExprNode |
BranchNode.clone()
Makes a full clone in new memory space of the current node and children
|
ExprNode |
AbstractExprNode.clone()
Clone the object
|
ExprNode |
BranchNode.getFirstChild()
Convenience method that gets the first child in the children array.
|
static ExprNode |
FilterParser.parse(byte[] filter) |
static ExprNode |
FilterParser.parse(SchemaManager schemaManager,
byte[] filter) |
private static ExprNode |
FilterParser.parse(SchemaManager schemaManager,
byte[] filter,
boolean relaxed) |
static ExprNode |
FilterParser.parse(SchemaManager schemaManager,
java.lang.String filter) |
static ExprNode |
FilterParser.parse(SchemaManager schemaManager,
java.lang.String filter,
Position pos) |
static ExprNode |
FilterParser.parse(java.lang.String filter)
Parses a search filter from it's string representation to an expression node object.
|
static ExprNode |
FilterParser.parse(java.lang.String filter,
boolean relaxed)
Parses a search filter from it's string representation to an expression node object.
|
private static ExprNode |
FilterParser.parseBranchNode(SchemaManager schemaManager,
ExprNode node,
byte[] filter,
Position pos,
boolean relaxed)
Parse AND, OR and NOT nodes :
and = '&' filterlist
or = '|' filterlist
not = '!' filter
filterlist = 1*filter
|
private static ExprNode |
FilterParser.parseExtensible(SchemaManager schemaManager,
java.lang.String attribute,
byte[] filter,
Position pos,
boolean relaxed)
Parse an extensible
extensible = ( attr [":dn"] [':' oid] ":=" assertionvalue )
/ ( [":dn"] ':' oid ":=" assertionvalue )
matchingrule = ":" oid
|
private static ExprNode |
FilterParser.parseFilterComp(SchemaManager schemaManager,
byte[] filter,
Position pos,
boolean relaxed)
filtercomp = and / or / not / item
and = '&' filterlist
or = '|' filterlist
not = '!' filter
item = simple / present / substring / extensible
simple = attr filtertype assertionvalue
present = attr EQUALS ASTERISK
substring = attr EQUALS [initial] any [final]
extensible = ( attr [dnattrs]
[matchingrule] COLON EQUALS assertionvalue )
/ ( [dnattrs]
matchingrule COLON EQUALS assertionvalue )
|
private static ExprNode |
FilterParser.parseFilterInternal(SchemaManager schemaManager,
byte[] filter,
Position pos,
boolean relaxed)
Pasre the grammar rule :
filter ::= '(' filterComp ')'
|
private static ExprNode |
FilterParser.parseItem(SchemaManager schemaManager,
byte[] filter,
Position pos,
byte b,
boolean relaxed)
Parse the following grammar :
item = simple / present / substring / extensible
simple = attr filtertype assertionvalue
filtertype = '=' / '~=' / '>=' / '<='
present = attr '=' '*'
substring = attr '=' [initial] any [final]
extensible = ( attr [":dn"] [':' oid] ":=" assertionvalue )
/ ( [":dn"] ':' oid ":=" assertionvalue )
matchingrule = ":" oid
An item starts with an attribute or a colon.
|
private static ExprNode |
FilterParser.parsePresenceEqOrSubstring(SchemaManager schemaManager,
java.lang.String attribute,
byte[] filter,
Position pos)
Here is the grammar to parse :
simple ::= '=' assertionValue
present ::= '=' '*'
substring ::= '=' [initial] any [final]
initial ::= assertionValue
any ::= '*' ( assertionValue '*')*
As we can see, there is an ambiguity in the grammar : attr=* can be
seen as a present or as a substring.
|
private static ExprNode |
FilterParser.parseSubstring(SchemaManager schemaManager,
java.lang.String attribute,
Value<?> initial,
byte[] filter,
Position pos)
Parse a substring
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ExprNode> |
BranchNode.getChildren()
Gets the children below this BranchNode.
|
java.util.List<ExprNode> |
FilterVisitor.getOrder(BranchNode node,
java.util.List<ExprNode> children)
Get the array of children to visit sequentially to determine the order of
child visitations.
|
java.util.List<ExprNode> |
BranchNormalizedVisitor.getOrder(BranchNode node,
java.util.List<ExprNode> children) |
| Modifier and Type | Method and Description |
|---|---|
void |
NotNode.addNode(ExprNode node)
Adds a child node to this NOT node node
|
void |
BranchNode.addNode(ExprNode node)
Adds a child node to this branch node node
|
void |
NotNode.addNodeToHead(ExprNode node)
Adds a child node to this NOT node at the head rather than the tail.
|
void |
BranchNode.addNodeToHead(ExprNode node)
Adds a child node to this branch node at the head rather than the tail.
|
boolean |
FilterVisitor.canVisit(ExprNode node)
Checks to see if a node can be visited.
|
boolean |
BranchNormalizedVisitor.canVisit(ExprNode node) |
int |
BranchNormalizedVisitor.NodeComparator.compare(ExprNode o1,
ExprNode o2) |
static java.lang.String |
BranchNormalizedVisitor.getNormalizedFilter(ExprNode filter)
Normalizes a filter expression to a canonical representation while
retaining logical meaning of the expression.
|
private static ExprNode |
FilterParser.parseBranchNode(SchemaManager schemaManager,
ExprNode node,
byte[] filter,
Position pos,
boolean relaxed)
Parse AND, OR and NOT nodes :
and = '&' filterlist
or = '|' filterlist
not = '!' filter
filterlist = 1*filter
|
java.lang.Object |
FilterVisitor.visit(ExprNode node)
Visits a filter expression AST using a specific visitation order.
|
java.lang.Object |
BranchNormalizedVisitor.visit(ExprNode node) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ExprNode> |
FilterVisitor.getOrder(BranchNode node,
java.util.List<ExprNode> children)
Get the array of children to visit sequentially to determine the order of
child visitations.
|
java.util.List<ExprNode> |
BranchNormalizedVisitor.getOrder(BranchNode node,
java.util.List<ExprNode> children) |
void |
NotNode.setChildren(java.util.List<ExprNode> childList)
Sets the list of children under this node.
|
void |
BranchNode.setChildren(java.util.List<ExprNode> list)
Sets the list of children under this node.
|
| Constructor and Description |
|---|
AndNode(ExprNode... childList)
Creates a AndNode using a logical operator and a list of children.
|
BranchNode(AssertionType assertionType,
ExprNode... childList)
Creates a BranchNode using a logical operator and a list of children.
|
NotNode(ExprNode child)
Creates a NotNode using a logical NOT operator and the given child.
|
OrNode(ExprNode... childList)
Creates a OrNode using a logical operator and a list of children.
|
| Constructor and Description |
|---|
AndNode(java.util.List<ExprNode> childList)
Creates a AndNode using a logical operator and a list of children.
|
BranchNode(AssertionType assertionType,
java.util.List<ExprNode> childList)
Creates a BranchNode using a logical operator and a list of children.
|
NotNode(java.util.List<ExprNode> childList)
Creates a NotNode using a logical NOT operator and a list of children.
|
OrNode(java.util.List<ExprNode> childList)
Creates a OrNode using a logical operator and a list of children.
|
| Modifier and Type | Field and Description |
|---|---|
private ExprNode |
SearchRequestImpl.filterNode
Search filter expression tree's root node
|
| Modifier and Type | Method and Description |
|---|---|
ExprNode |
SearchRequest.getFilter()
Gets the search filter associated with this search request.
|
ExprNode |
SearchRequestImpl.getFilter()
Gets the search filter associated with this search request.
|
| Modifier and Type | Method and Description |
|---|---|
SearchRequest |
SearchRequest.setFilter(ExprNode filter)
Sets the search filter associated with this search request.
|
SearchRequest |
SearchRequestImpl.setFilter(ExprNode filter)
Sets the search filter associated with this search request.
|
| Modifier and Type | Field and Description |
|---|---|
private ExprNode |
SubtreeSpecificationModifier.filter
a filter using only assertions on objectClass attributes for subtree
refinement
|
private ExprNode |
BaseSubtreeSpecification.refinement
a filter using only assertions on objectClass attributes for subtree
refinement
|
| Modifier and Type | Method and Description |
|---|---|
ExprNode |
AntlrSubtreeSpecificationParser.filter() |
ExprNode |
BaseSubtreeSpecification.getRefinement() |
ExprNode |
SubtreeSpecification.getRefinement()
A subtree refinement represents a non-contiguous selection of entries
using a limited filter expression where attribute assertions are based on
the objectClass of the entries.
|
ExprNode |
AntlrSubtreeSpecificationParser.refinement() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ExprNode> |
AntlrSubtreeSpecificationParser.refinements() |
| Modifier and Type | Method and Description |
|---|---|
void |
SubtreeSpecificationModifier.setFilter(ExprNode filter)
Sets a filter
|
void |
SubtreeSpecificationModifier.setRefinement(ExprNode refinement)
Sets a filter using only assertions on objectClass attributes for subtree
refinement.
|
| Constructor and Description |
|---|
BaseSubtreeSpecification(Dn base,
int minBaseDistance,
int maxBaseDistance,
java.util.Set<Dn> chopAfter,
java.util.Set<Dn> chopBefore,
ExprNode refinement)
Creates a subtree which may be a refinement filter where all aspects of
the specification can be set.
|
BaseSubtreeSpecification(ExprNode refinement)
Creates a simple subtree refinement whose administrative point is
necessarily the base and only those subordinates selected by the
refinement filter are included.
|