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