private ClientLink buildNavigationLink(final String name, final URI uri, final ClientLinkType type) { ClientLink result; switch (type) { case ENTITY_NAVIGATION: result = service.getClient().getObjectFactory().newEntityNavigationLink(name, uri); break; case ENTITY_SET_NAVIGATION: result = service.getClient().getObjectFactory().newEntitySetNavigationLink(name, uri); break; default: throw new IllegalArgumentException("Invalid link type " + type.name()); } return result; }
private ClientLink buildNavigationLink(final String name, final URI uri, final ClientLinkType type) { ClientLink result; switch (type) { case ENTITY_NAVIGATION: result = service.getClient().getObjectFactory().newEntityNavigationLink(name, uri); break; case ENTITY_SET_NAVIGATION: result = service.getClient().getObjectFactory().newEntitySetNavigationLink(name, uri); break; default: throw new IllegalArgumentException("Invalid link type " + type.name()); } return result; }
newEntityNavigationLink(delayedUpdate.getSourceName(), targetURI) : service.getClient().getObjectFactory(). newEntitySetNavigationLink(delayedUpdate.getSourceName(), targetURI));
newEntityNavigationLink(delayedUpdate.getSourceName(), targetURI) : service.getClient().getObjectFactory(). newEntitySetNavigationLink(delayedUpdate.getSourceName(), targetURI));
client.getObjectFactory().newEntitySetNavigationLink(title, URIUtils.getURI(base, href))); } else if (inlineEntity != null) { odataLinked.addLink(createODataInlineEntity(inlineEntity,
client.getObjectFactory().newEntitySetNavigationLink(title, URIUtils.getURI(base, href))); } else if (inlineEntity != null) { odataLinked.addLink(createODataInlineEntity(inlineEntity,