private ExpandSelectTreeNodeImpl addSelectNode(final ExpandSelectTreeNodeImpl actualNode, final String navigationPropertyName) { Map<String, ExpandSelectTreeNode> links = actualNode.getLinks(); if (!links.containsKey(navigationPropertyName)) { ExpandSelectTreeNodeImpl subNode = new ExpandSelectTreeNodeImpl(); actualNode.putLink(navigationPropertyName, subNode); if (actualNode.isExplicitlySelected()) { // if a node was explicitly selected all sub nodes are explicitly selected subNode.setExplicitlySelected(); } else { if (actualNode.getAllKind() == AllKinds.IMPLICITLYTRUE) { actualNode.setAllKindFalse(); } } return subNode; } else { return (ExpandSelectTreeNodeImpl) links.get(navigationPropertyName); } }
private ExpandSelectTreeNodeImpl addSelectNode(final ExpandSelectTreeNodeImpl actualNode, final String navigationPropertyName) { Map<String, ExpandSelectTreeNode> links = actualNode.getLinks(); if (!links.containsKey(navigationPropertyName)) { ExpandSelectTreeNodeImpl subNode = new ExpandSelectTreeNodeImpl(); actualNode.putLink(navigationPropertyName, subNode); if (actualNode.isExplicitlySelected()) { // if a node was explicitly selected all sub nodes are explicitly selected subNode.setExplicitlySelected(); } else { if (actualNode.getAllKind() == AllKinds.IMPLICITLYTRUE) { actualNode.setAllKindFalse(); } } return subNode; } else { return (ExpandSelectTreeNodeImpl) links.get(navigationPropertyName); } }
private ExpandSelectTreeNodeImpl addSelectNode(final ExpandSelectTreeNodeImpl actualNode, final String navigationPropertyName) { Map<String, ExpandSelectTreeNode> links = actualNode.getLinks(); if (!links.containsKey(navigationPropertyName)) { ExpandSelectTreeNodeImpl subNode = new ExpandSelectTreeNodeImpl(); actualNode.putLink(navigationPropertyName, subNode); if (actualNode.isExplicitlySelected()) { // if a node was explicitly selected all sub nodes are explicitly selected subNode.setExplicitlySelected(); } else { if (actualNode.getAllKind() == AllKinds.IMPLICITLYTRUE) { actualNode.setAllKindFalse(); } } return subNode; } else { return (ExpandSelectTreeNodeImpl) links.get(navigationPropertyName); } }
@Override public ExpandSelectTreeNode build() throws EdmException { EdmEntityType entityType = entitySet.getEntityType(); if (selectedPropertyNames != null) { handleProperties(entityType); } if (selectedNavigationPropertyNames != null) { setAllKindFalse(); handleLinks(entityType, selectedNavigationPropertyNames, null); } if (expandedNavigationPropertyNames != null) { ExpandSelectTreeNodeImpl subNode = new ExpandSelectTreeNodeImpl(); subNode.setExplicitlySelected(); handleLinks(entityType, expandedNavigationPropertyNames, subNode); } if (customExpandedNavigationProperties != null) { handleCustomLinks(entityType); } return ExpandSelectTreeNodeImpl.this; }
@Override public ExpandSelectTreeNode build() throws EdmException { EdmEntityType entityType = entitySet.getEntityType(); if (selectedPropertyNames != null) { handleProperties(entityType); } if (selectedNavigationPropertyNames != null) { setAllKindFalse(); handleLinks(entityType, selectedNavigationPropertyNames, null); } if (expandedNavigationPropertyNames != null) { ExpandSelectTreeNodeImpl subNode = new ExpandSelectTreeNodeImpl(); subNode.setExplicitlySelected(); handleLinks(entityType, expandedNavigationPropertyNames, subNode); } if (customExpandedNavigationProperties != null) { handleCustomLinks(entityType); } return ExpandSelectTreeNodeImpl.this; }
@Override public ExpandSelectTreeNode build() throws EdmException { EdmEntityType entityType = entitySet.getEntityType(); if (selectedPropertyNames != null) { handleProperties(entityType); } if (selectedNavigationPropertyNames != null) { setAllKindFalse(); handleLinks(entityType, selectedNavigationPropertyNames, null); } if (expandedNavigationPropertyNames != null) { ExpandSelectTreeNodeImpl subNode = new ExpandSelectTreeNodeImpl(); subNode.setExplicitlySelected(); handleLinks(entityType, expandedNavigationPropertyNames, subNode); } if (customExpandedNavigationProperties != null) { handleCustomLinks(entityType); } return ExpandSelectTreeNodeImpl.this; }