@Override public ExpandSelectTreeNodeBuilder createExpandSelectTreeNodeBuilder() { ExpandSelectTreeNodeImpl expandSelectTreeNode = new ExpandSelectTreeNodeImpl(); return expandSelectTreeNode.new ExpandSelectTreeNodeBuilderImpl(); }
private void consolidate(final ExpandSelectTreeNodeImpl node) { switch (node.getAllKind()) { case EXPLICITLYTRUE: case IMPLICITLYTRUE: consolidateTrueNode(node); break; case FALSE: consolidateFalseNode(node); } }
@Override public UriInfo parseUri(Edm edm, List<PathSegment> pathSegments, Map<String, List<String>> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException { return new UriParserImpl(edm).parseAll(pathSegments, queryParameters); }
private void addNavigationSegment(final String keyPredicateName, final EdmNavigationProperty navigationProperty) throws UriSyntaxException, EdmException { final EdmEntitySet targetEntitySet = uriResult.getTargetEntitySet().getRelatedEntitySet(navigationProperty); final EdmEntityType targetEntityType = targetEntitySet.getEntityType(); uriResult.setTargetEntitySet(targetEntitySet); uriResult.setTargetType(targetEntityType); NavigationSegmentImpl navigationSegment = new NavigationSegmentImpl(); navigationSegment.setEntitySet(targetEntitySet); navigationSegment.setNavigationProperty(navigationProperty); if (keyPredicateName != null) { navigationSegment.setKeyPredicates(parseKey(keyPredicateName, targetEntityType)); } uriResult.addNavigationSegment(navigationSegment); }
@Override public ExpandSelectTreeNode buildExpandSelectTree(final List<SelectItem> select, final List<ArrayList<NavigationPropertySegment>> expand) throws EdmException { return new ExpandSelectTreeCreator(select, expand).create(); }
/** * Parse the URI part after an OData service root, * already splitted into path segments and query parameters. * @param pathSegments the {@link PathSegment}s of the resource path, * potentially percent-encoded * @param queryParameters the query parameters, already percent-decoded * @return a {@link UriInfoImpl} instance containing the parsed information */ @Override public UriInfo parse(final List<PathSegment> pathSegments, final Map<String, String> queryParameters) throws UriSyntaxException, UriNotMatchingException, EdmException { return parseAll(pathSegments, convertFromSingleMapToMultiMap(queryParameters)); }
@SuppressWarnings("deprecation") @Override public UriInfo parseUriWithStrictFilter(Edm edm, List<PathSegment> pathSegments, Map<String, String> queryParameters, boolean strictFilter) throws UriSyntaxException, UriNotMatchingException, EdmException { return new UriParserImpl(edm).parse(pathSegments, queryParameters, strictFilter);//NOSONAR }
public void setExplicitlySelected() { isExplicitlySelected = true; setAllExplicitly(); }
@Override protected UriParser getUriParser(final Edm edm) { return new UriParserImpl(edm); }
private void handleSystemQueryOptionFormat(final String format) throws UriSyntaxException { uriResult.setFormat(format); }
private void handleSystemQueryOptionSkipToken(final String skiptoken) throws UriSyntaxException { uriResult.setSkipToken(skiptoken); }
private void addNavigationSegment(final String keyPredicateName, final EdmNavigationProperty navigationProperty) throws UriSyntaxException, EdmException { final EdmEntitySet targetEntitySet = uriResult.getTargetEntitySet().getRelatedEntitySet(navigationProperty); final EdmEntityType targetEntityType = targetEntitySet.getEntityType(); uriResult.setTargetEntitySet(targetEntitySet); uriResult.setTargetType(targetEntityType); NavigationSegmentImpl navigationSegment = new NavigationSegmentImpl(); navigationSegment.setEntitySet(targetEntitySet); navigationSegment.setNavigationProperty(navigationProperty); if (keyPredicateName != null) { navigationSegment.setKeyPredicates(parseKey(keyPredicateName, targetEntityType)); } uriResult.addNavigationSegment(navigationSegment); }
private void consolidate(final ExpandSelectTreeNodeImpl node) { switch (node.getAllKind()) { case EXPLICITLYTRUE: case IMPLICITLYTRUE: consolidateTrueNode(node); break; case FALSE: consolidateFalseNode(node); } }
@Override public ExpandSelectTreeNodeBuilder createExpandSelectTreeNodeBuilder() { ExpandSelectTreeNodeImpl expandSelectTreeNode = new ExpandSelectTreeNodeImpl(); return expandSelectTreeNode.new ExpandSelectTreeNodeBuilderImpl(); }
@Override public ExpandSelectTreeNode buildExpandSelectTree(final List<SelectItem> select, final List<ArrayList<NavigationPropertySegment>> expand) throws EdmException { return new ExpandSelectTreeCreator(select, expand).create(); }
public void setExplicitlySelected() { isExplicitlySelected = true; setAllExplicitly(); }
private void consolidate(final ExpandSelectTreeNodeImpl node) { switch (node.getAllKind()) { case EXPLICITLYTRUE: case IMPLICITLYTRUE: consolidateTrueNode(node); break; case FALSE: consolidateFalseNode(node); } }
@Override public ExpandSelectTreeNodeBuilder createExpandSelectTreeNodeBuilder() { ExpandSelectTreeNodeImpl expandSelectTreeNode = new ExpandSelectTreeNodeImpl(); return expandSelectTreeNode.new ExpandSelectTreeNodeBuilderImpl(); }
@Override public ExpandSelectTreeNode buildExpandSelectTree(final List<SelectItem> select, final List<ArrayList<NavigationPropertySegment>> expand) throws EdmException { return new ExpandSelectTreeCreator(select, expand).create(); }
public void setExplicitlySelected() { isExplicitlySelected = true; setAllExplicitly(); }