com.elasticpath.domain.catalogview
Interface BranchNode

All Superinterfaces:
java.lang.Comparable
All Known Subinterfaces:
AttributeRangeFilter, Category, PriceFilter, RangeFilter
All Known Implementing Classes:
AbstractRangeFilterImpl, AttributeRangeFilterImpl, CategoryImpl, PriceFilterImpl

public interface BranchNode
extends java.lang.Comparable

Represents a branch node on a tree. A BranchNode can only have one parent BranchNode. If a BranchNode has no parent, it's a root node.


Method Summary
 int getLevel()
          Get node level.
 java.util.Stack getPath()
          Get the path from the root node to this node on the tree.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getLevel

int getLevel()
Get node level. The root nodes will have level 1.
A node's level = it's parent node's level + 1

Returns:
the category level

getPath

java.util.Stack getPath()
Get the path from the root node to this node on the tree.

Returns:
a stack contains the path, the root node is on the top.