public interface SocketConnectionService
| Modifier and Type | Field and Description |
|---|---|
static String |
SOCKET_DATA_TYPE_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReceiveFrom(WidgetSocket inputSocket,
Widget targetWidget,
WidgetSocket outputSocket,
Widget srcWidget)
Checks if outputSocket from srcWidget can be connected with inputSocket from targetWidget according to data type.
|
default boolean |
canResolveGenericType(WidgetSocket socket,
Widget widget)
Checks if the generic type for the specified socket and widget can be resolved to concrete type.
|
boolean |
checkVisibilityRestrictions(WidgetSocket inputSocket,
Widget targetWidget,
WidgetSocket outputSocket,
Widget srcWidget)
Checks if outputSocket from srcWidget can be connected with inputSocket from targetWidget according to socket
visibility.
|
default boolean |
hasGenericType(WidgetSocket socket)
Checks if socket data type definition has generic type
|
default boolean |
isCollectionTypeAssignable(WidgetSocket.Multiplicity source,
WidgetSocket.Multiplicity target)
Checks if target is compatible with source basing on WidgetSocket.Multiplicity
|
String |
resolveGenericType(WidgetSocket socket,
Widget widget)
Resolves the generic type for the specified socket and widget if any.
|
static final String SOCKET_DATA_TYPE_PREFIX
boolean canReceiveFrom(WidgetSocket inputSocket, Widget targetWidget, WidgetSocket outputSocket, Widget srcWidget)
inputSocket - - WidgetSocket represents input socketoutputSocket - - WidgetSocket represents output socketsrcWidget - - Widget represents source widgettargetWidget - - Widget represents target widgetboolean checkVisibilityRestrictions(WidgetSocket inputSocket, Widget targetWidget, WidgetSocket outputSocket, Widget srcWidget)
inputSocket - - WidgetSocket represents input socketoutputSocket - - WidgetSocket represents output socketsrcWidget - - Widget represents source widgettargetWidget - - Widget represents target widgetdefault boolean canResolveGenericType(WidgetSocket socket, Widget widget)
socket - - WidgetSocket represents socketwidget - - Widget represents widgettrue if a widget socket does not have generic type or the type can be resolvedString resolveGenericType(WidgetSocket socket, Widget widget)
socket - - WidgetSocket represents socketwidget - - Widget represents widgetdefault boolean isCollectionTypeAssignable(WidgetSocket.Multiplicity source, WidgetSocket.Multiplicity target)
source - multiplicity to checktarget - multiplicity to checkdefault boolean hasGenericType(WidgetSocket socket)
socket - - WidgetSocket represents socketCopyright © 2018. All rights reserved.