Interface ClientLinked
- All Known Subinterfaces:
ClientComplexValue
,ClientEntity
,ClientSingleton
public interface ClientLinked
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addLink
(ClientLink link) Puts the given link into one of available lists, based on its type.getAssociationLink
(String name) Gets association link with given name, if available, otherwise null.Returns all entity association links.getNavigationLink
(String name) Gets navigation link with given name, if available, otherwise null.Returns all entity navigation links (including inline entities / entity sets).boolean
removeLink
(ClientLink link) Removes the given link from any list (association, navigation, edit-media).
-
Method Details
-
addLink
Puts the given link into one of available lists, based on its type.- Parameters:
link
- to be added- Returns:
- true if the given link was added in one of available lists
-
removeLink
Removes the given link from any list (association, navigation, edit-media).- Parameters:
link
- to be removed- Returns:
- true if the given link was contained in one of available lists
-
getAssociationLink
Gets association link with given name, if available, otherwise null.- Parameters:
name
- candidate link name- Returns:
- association link with given name, if available, otherwise null
-
getAssociationLinks
List<ClientLink> getAssociationLinks()Returns all entity association links.- Returns:
- OData entity links.
-