private void handleProperties(final EdmEntityType entityType) throws EdmException { for (String propertyName : selectedPropertyNames) { EdmTyped property = entityType.getProperty(propertyName); if (property == null) { throw new EdmException(EdmException.PROPERTYNOTFOUND.addContent(propertyName)); } else if (!(property instanceof EdmProperty)) { throw new EdmException(EdmException.MUSTBEPROPERTY.addContent(propertyName)); } addProperty((EdmProperty) property); } }
private void handleProperties(final EdmEntityType entityType) throws EdmException { for (String propertyName : selectedPropertyNames) { EdmTyped property = entityType.getProperty(propertyName); if (property == null) { throw new EdmException(EdmException.PROPERTYNOTFOUND.addContent(propertyName)); } else if (!(property instanceof EdmProperty)) { throw new EdmException(EdmException.MUSTBEPROPERTY.addContent(propertyName)); } addProperty((EdmProperty) property); } }
private void handleProperties(final EdmEntityType entityType) throws EdmException { for (String propertyName : selectedPropertyNames) { EdmTyped property = entityType.getProperty(propertyName); if (property == null) { throw new EdmException(EdmException.PROPERTYNOTFOUND.addContent(propertyName)); } else if (!(property instanceof EdmProperty)) { throw new EdmException(EdmException.MUSTBEPROPERTY.addContent(propertyName)); } addProperty((EdmProperty) property); } }
private void createSelectTree(final ExpandSelectTreeNodeImpl root) throws EdmException { for (SelectItem item : initialSelect) { ExpandSelectTreeNodeImpl actualNode = root; for (NavigationPropertySegment navSegement : item.getNavigationPropertySegments()) { actualNode = addSelectNode(actualNode, navSegement.getNavigationProperty().getName()); } if (item.getProperty() != null) { actualNode.addProperty(item.getProperty()); } else if (item.isStar()) { actualNode.setAllExplicitly(); } else { // The actual node is a navigation property and has no property or star so it is explicitly selected actualNode.setExplicitlySelected(); } } }
private void createSelectTree(final ExpandSelectTreeNodeImpl root) throws EdmException { for (SelectItem item : initialSelect) { ExpandSelectTreeNodeImpl actualNode = root; for (NavigationPropertySegment navSegement : item.getNavigationPropertySegments()) { actualNode = addSelectNode(actualNode, navSegement.getNavigationProperty().getName()); } if (item.getProperty() != null) { actualNode.addProperty(item.getProperty()); } else if (item.isStar()) { actualNode.setAllExplicitly(); } else { // The actual node is a navigation property and has no property or star so it is explicitly selected actualNode.setExplicitlySelected(); } } }
private void createSelectTree(final ExpandSelectTreeNodeImpl root) throws EdmException { for (SelectItem item : initialSelect) { ExpandSelectTreeNodeImpl actualNode = root; for (NavigationPropertySegment navSegement : item.getNavigationPropertySegments()) { actualNode = addSelectNode(actualNode, navSegement.getNavigationProperty().getName()); } if (item.getProperty() != null) { actualNode.addProperty(item.getProperty()); } else if (item.isStar()) { actualNode.setAllExplicitly(); } else { // The actual node is a navigation property and has no property or star so it is explicitly selected actualNode.setExplicitlySelected(); } } }