public class CategoryNode
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
CategoryNode(java.lang.String pCategoryId,
java.lang.String pDisplayName,
java.lang.String pRootCatalogId,
java.util.Set pAncestorCatalogIds)
Constructs an instanceof CategoryNode
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(CategoryNode pChild)
Adds a child to this node
|
java.util.Set<java.lang.String> |
getAncestorCatalogIds()
Access the set of ancestor catalog ids
|
java.util.List<CategoryNode> |
getAncestors()
Returns a ordered list of ancestors of this node
|
java.util.List<CategoryNode> |
getAncestorsAndSelf()
Returns a ordered list of ancestors of this node including the
current node
|
java.lang.String |
getCategoryId()
Access the category id
|
CategoryNode |
getChild(int pIndex)
Access a child using an index
|
int |
getChildSequenceNumber()
Return the child sequence number of this node.
|
java.lang.String |
getDisplayName()
Access this nodes display name
|
int |
getNumberOfChildren()
Access the number of children of this node
|
CategoryNode |
getParent()
Access the parent node
|
atg.commerce.endeca.index.dimension.CategoryPath |
getPath()
Access the path of this node
|
java.lang.String |
getPathAsString()
Access the path of this node represented as a string
|
java.lang.String |
getRootCatalogId()
Access the root catalog id
|
void |
setAncestorCatalogIds(java.util.Set<java.lang.String> pAncestorCatalogIds)
set the ancestor catalog ids
|
void |
setCategoryId(java.lang.String pCategoryId)
Set the category id
|
void |
setDisplayName(java.lang.String pDisplayName)
Set this nodes display name
|
void |
setParent(CategoryNode pParent)
Set the parent node
|
void |
setRootCatalogId(java.lang.String pRootCatalogId)
set the roota catalog id
|
java.lang.String |
toString()
toString
|
public CategoryNode(java.lang.String pCategoryId, java.lang.String pDisplayName, java.lang.String pRootCatalogId, java.util.Set pAncestorCatalogIds)
pCategoryId
- the category id of this nodepDisplayName
- the display name of this nodepRootCatalogId
- the root catalog id of this nodepAncestorCatalogIds
- a set of ancestory catalogspublic void setParent(CategoryNode pParent)
pParent
- the parent nodepublic CategoryNode getParent()
public java.util.List<CategoryNode> getAncestors()
an
- ordered list of category nodespublic java.util.List<CategoryNode> getAncestorsAndSelf()
an
- ordered list of category nodespublic boolean addChild(CategoryNode pChild)
pChild
- a category nodepublic int getNumberOfChildren()
public CategoryNode getChild(int pIndex)
pIndex
- the index numberpublic java.lang.String getCategoryId()
public void setCategoryId(java.lang.String pCategoryId)
pCategoryId
- the category idpublic java.lang.String getRootCatalogId()
public void setRootCatalogId(java.lang.String pRootCatalogId)
pRootCatalogId
- the catalog idpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String pDisplayName)
pDisplayName
- the display namepublic java.util.Set<java.lang.String> getAncestorCatalogIds()
public void setAncestorCatalogIds(java.util.Set<java.lang.String> pAncestorCatalogIds)
public int getChildSequenceNumber()
public atg.commerce.endeca.index.dimension.CategoryPath getPath()
public java.lang.String getPathAsString()
public java.lang.String toString()
toString
in class java.lang.Object