public class SyncAttributeTreeModelFactory
extends java.lang.Object
SyncAttributeTreeModel.| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Comparator<SyncTypeAttributeDataTreeNode> |
COMPARE_NODES_BY_TYPE_AND_ATTRIBUTE_NAMES |
protected static final java.util.Comparator<SyncTypeAttributeDataTreeNode> COMPARE_NODES_BY_TYPE_AND_ATTRIBUTE_NAMES
public static SyncAttributeTreeModel create(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeDescriptors, ComposedTypeModel rootType)
SyncAttributeTreeModel.syncAttributeDescriptors - collection of attributes from which tree model will be createdrootType - type of root elementprotected static java.util.Map<SyncTypeAttributeDataTreeNode,java.util.List<SyncTypeAttributeDataTreeNode>> createTree(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeDescriptors, ComposedTypeModel rootType)
protected static java.util.Map<ComposedTypeModel,java.util.Set<SyncAttributeDescriptorConfigModel>> groupAttributesByParent(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeDescriptors)
protected static java.util.Map<SyncTypeAttributeDataTreeNode,java.util.List<SyncTypeAttributeDataTreeNode>> convertToNodes(java.util.Map<ComposedTypeModel,java.util.Set<SyncAttributeDescriptorConfigModel>> syncAttributeDescriptorsMap)
protected static void sortMapValuesLists(java.util.Map<SyncTypeAttributeDataTreeNode,java.util.List<SyncTypeAttributeDataTreeNode>> map)
protected static int compareNodesByTypeAndName(SyncTypeAttributeDataTreeNode node1, SyncTypeAttributeDataTreeNode node2)
protected static boolean bothNodesAreTypesOrAttributes(SyncTypeAttributeDataTreeNode node1, SyncTypeAttributeDataTreeNode node2)
protected static void connectChildrenAndParent(java.util.Map<SyncTypeAttributeDataTreeNode,java.util.List<SyncTypeAttributeDataTreeNode>> nodes)
protected static ComposedTypeModel findParent(java.util.Map<SyncTypeAttributeDataTreeNode,java.util.List<SyncTypeAttributeDataTreeNode>> nodes, ComposedTypeModel child)
Copyright © 2018 SAP SE. All Rights Reserved.