Class ScopeNode
java.lang.Object
org.apache.directory.api.ldap.model.filter.AbstractExprNode
org.apache.directory.api.ldap.model.filter.ScopeNode
Node used not to represent a published assertion but an assertion on the
scope of the search.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractExprNode
annotations, assertionType -
Constructor Summary
ConstructorsConstructorDescriptionScopeNode(AliasDerefMode aliasDerefAliases, Dn baseDn, String baseId, SearchScope scope) Creates a new ScopeNode object. -
Method Summary
Modifier and TypeMethodDescriptionaccept(FilterVisitor visitor) Element/node accept method for visitor pattern.booleanGets the base dn.Gets the base ID.Gets the alias dereferencing mode type safe enumeration.getScope()Gets the search scope.inthashCode()booleanisLeaf()Always returns true since a scope node has no children.booleanTells if this Node is Schema aware.toString()Methods inherited from class AbstractExprNode
clone, get, getAnnotations, getAssertionType, printRefinementToBuffer, set
-
Constructor Details
-
ScopeNode
Creates a new ScopeNode object.- Parameters:
aliasDerefAliases- the alias dereferencing modebaseDn- the search basebaseId- the search IDscope- the search scope
-
-
Method Details
-
isLeaf
public boolean isLeaf()Always returns true since a scope node has no children.- Returns:
true- See Also:
-
getScope
-
getBaseDn
-
getBaseId
-
getDerefAliases
Gets the alias dereferencing mode type safe enumeration.- Returns:
- the alias dereferencing enumeration constant.
-
accept
Description copied from interface:ExprNodeElement/node accept method for visitor pattern.- Parameters:
visitor- the filter expression tree structure visitor- Returns:
- The modified element
- See Also:
-
isSchemaAware
public boolean isSchemaAware()Tells if this Node is Schema aware.- Returns:
- true if the Node is SchemaAware
-
equals
- Overrides:
equalsin classAbstractExprNode- Returns:
trueif both objects are equal- See Also:
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractExprNode- Returns:
- the instance's hash code
- See Also:
-
toString
- Overrides:
toStringin classAbstractExprNode- Returns:
- A string representing the AndNode
- See Also:
-