Class LeafNode
- java.lang.Object
-
- org.apache.directory.api.ldap.model.filter.AbstractExprNode
-
- org.apache.directory.api.ldap.model.filter.LeafNode
-
- Direct Known Subclasses:
ExtensibleNode
,PresenceNode
,SimpleNode
,SubstringNode
public abstract class LeafNode extends AbstractExprNode
Abstract base class for leaf nodes within the expression filter tree.- Author:
- Apache Directory Project
-
-
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 other)
String
getAttribute()
Gets the attribute this leaf node is based on.AttributeType
getAttributeType()
Gets the attributeType this leaf node is based on.int
hashCode()
boolean
isLeaf()
Gets whether this node is a leaf - the answer is always true here.boolean
isSchemaAware()
Tells if this Node is Schema aware.void
setAttribute(String attribute)
Sets the attribute this leaf node is based on.void
setAttributeType(AttributeType attributeType)
Sets the attributeType this leaf node is based on.-
Methods inherited from class org.apache.directory.api.ldap.model.filter.AbstractExprNode
clone, get, getAssertionType, printRefinementToBuffer, set, toString
-
-
-
-
Method Detail
-
isLeaf
public final boolean isLeaf()
Gets whether this node is a leaf - the answer is always true here.- Returns:
- true always
-
getAttributeType
public final AttributeType getAttributeType()
Gets the attributeType this leaf node is based on.- Returns:
- the attributeType asserted
-
getAttribute
public final String getAttribute()
Gets the attribute this leaf node is based on.- Returns:
- the attribute asserted
-
setAttributeType
public void setAttributeType(AttributeType attributeType)
Sets the attributeType this leaf node is based on.- Parameters:
attributeType
- the attributeType that is asserted by this filter node
-
setAttribute
public void setAttribute(String attribute)
Sets the attribute this leaf node is based on.- Parameters:
attribute
- the attribute that is asserted by this filter node
-
accept
public final 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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractExprNode
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classAbstractExprNode
- Returns:
true
if both objects are equal- See Also:
Object.equals(java.lang.Object)
-
-