public class DistributionTree extends Tree<java.util.Set<Distribution>,NamedArea>
NamedArea
Constructor and Description |
---|
DistributionTree(IDefinedTermDao termDao) |
Modifier and Type | Method and Description |
---|---|
TreeNode<java.util.Set<Distribution>,NamedArea> |
findChildNode(TreeNode<java.util.Set<Distribution>,NamedArea> parentNode,
NamedArea nodeID)
Returns the (first) child node (of type TreeNode) with the given nodeID.
|
boolean |
hasChildNode(TreeNode<java.util.Set<Distribution>,NamedArea> parentNode,
NamedArea nodeID) |
void |
orderAsTree(java.util.Collection<Distribution> distList,
java.util.Set<NamedAreaLevel> omitLevels,
java.util.Set<MarkerType> hiddenAreaMarkerTypes) |
void |
recursiveSortChildren(DistributionOrder distributionOrder) |
getRootElement, setRootElement, toList, toString
public static final Logger logger
public DistributionTree(IDefinedTermDao termDao)
public boolean hasChildNode(TreeNode<java.util.Set<Distribution>,NamedArea> parentNode, NamedArea nodeID)
parentNode
- nodeToFind
- public TreeNode<java.util.Set<Distribution>,NamedArea> findChildNode(TreeNode<java.util.Set<Distribution>,NamedArea> parentNode, NamedArea nodeID)
parentNode
- nodeToFind
- public void orderAsTree(java.util.Collection<Distribution> distList, java.util.Set<NamedAreaLevel> omitLevels, java.util.Set<MarkerType> hiddenAreaMarkerTypes)
distList
- omitLevels
- hiddenAreaMarkerTypes
- Areas not associated to a Distribution in the distList
are detected as fall back area
if they are having a Marker
with one of the specified MarkerType
s. Areas identified
as such are omitted from the hierarchy and the sub areas are moving one level up.
For more details on fall back areas see Marked area filter of
DescriptionUtility.filterDistributions(Collection, Set, boolean, boolean, boolean)
.public void recursiveSortChildren(DistributionOrder distributionOrder)
Copyright © 2007-2020 EDIT. All Rights Reserved.