public class LeafNode extends AbstractExprNode
Modifier and Type | Field and Description |
---|---|
protected String |
attribute
attribute on which this leaf is based
|
protected AttributeType |
attributeType
attributeType on which this leaf is based
|
annotations, assertionType, isSchemaAware
Modifier | Constructor and Description |
---|---|
protected |
LeafNode(AttributeType attributeType,
AssertionType assertionType)
Creates a leaf node.
|
protected |
LeafNode(String attribute,
AssertionType assertionType)
Creates a leaf node.
|
Modifier and Type | Method and 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.
|
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.
|
clone, escapeFilterValue, get, getAnnotations, getAssertionType, isSchemaAware, printRefinementToBuffer, set, toString
protected AttributeType attributeType
protected LeafNode(AttributeType attributeType, AssertionType assertionType)
attributeType
- the attribute this node is based onassertionType
- the type of this leaf nodeprotected LeafNode(String attribute, AssertionType assertionType)
attributeType
- the attribute this node is based onassertionType
- the type of this leaf nodepublic final boolean isLeaf()
public final AttributeType getAttributeType()
public final String getAttribute()
public void setAttributeType(AttributeType attributeType)
attributeType
- the attributeType that is asserted by this filter nodepublic void setAttribute(String attribute)
attribute
- the attribute that is asserted by this filter nodepublic final Object accept(FilterVisitor visitor)
ExprNode
visitor
- the filter expression tree structure visitorExprNode.accept(
FilterVisitor)
public int hashCode()
hashCode
in class AbstractExprNode
Object.hashCode()
public boolean equals(Object other)
equals
in class AbstractExprNode
true
if both objects are equalObject.equals(java.lang.Object)
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.