public class CatalogGroupSelectionChain
extends java.lang.Object
CatalogGroupSelection
instance should belongs to a catalog group selection chain. Each catalog group selection chain(shorten as selection chain) should have a root catalog group selection according to the position of its catalog group in the catalog tree, in catalog filter terminology, the root catalog group selection(shorten as selection) is called Chain Head and its descendant selections are called Chain Entry. Note that Chain Head is a kind of Chain Entry.
For Example, in the following catalog tree:
Catalog X |------A------A1---|--A11 | | |--A12 | | |--A13 | |------A2 |--A14 | | | |------B------B1 | | | |------B2---|--B21 | | |--B22 | | |--B23 | |------B3 |--B24
Vice versa, The direct ancestor selection chain entry of 'A2', 'A12' and 'A13' should be 'A'.
Constructor and Description |
---|
CatalogGroupSelectionChain()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChainEntry(CatalogGroupSelectionChainEntry chainEntry)
Add a chain entry into chain.
|
java.util.Map<java.lang.Long,CatalogGroupSelectionChainEntry> |
getCatGroupChainEntryMap()
Get the Map between catalog group ID and chain entries in the chain.
|
CatalogGroupSelectionChainEntry |
getChainHead()
Get the chain head of the chain.
|
void |
setChainHead(CatalogGroupSelectionChainEntry chainHead)
Set the chain head for chain.
|
public void addChainEntry(CatalogGroupSelectionChainEntry chainEntry)
chainEntry
- the chain entry.public void setChainHead(CatalogGroupSelectionChainEntry chainHead)
chainHead
- the chain head.public CatalogGroupSelectionChainEntry getChainHead()
public java.util.Map<java.lang.Long,CatalogGroupSelectionChainEntry> getCatGroupChainEntryMap()