public class BridgeObject extends Object
AccessPoint. Contains information
about the data flow direction supported by this bridge and the type of the data.
Will be used for static type checking.| Constructor and Description |
|---|
BridgeObject(Class endClass,
org.eclipse.stardust.common.Direction direction) |
BridgeObject(Class endClass,
org.eclipse.stardust.common.Direction direction,
boolean genericType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptAssignmentFrom(BridgeObject rhs)
Performs a static check if this bridge is valid as a data sink for the data source
represented by
rhs. |
static BridgeObject |
getBridge(AccessPoint ap,
String path,
org.eclipse.stardust.common.Direction direction,
org.eclipse.stardust.engine.core.spi.extensions.runtime.AccessPathEvaluationContext context)
Creates a bridge object representing the dereferenced
AccessPoint. |
org.eclipse.stardust.common.Direction |
getDirection()
Retrieves the data flow direction of the represented data.
|
Class |
getEndClass()
Retrieves the type of data supported by this bridge object.
|
boolean |
isGenericType()
Retrieves if this bridge object is a generic type.
|
static boolean |
isValidMapping(String context,
org.eclipse.stardust.common.Direction direction,
AccessPoint lhsPoint,
String lhsPath,
AccessPoint rhsPoint,
String rhsPath,
org.eclipse.stardust.engine.api.model.IActivity activity)
Performs a static check if the two given
AccessPoint dereferences are
compatible regarding possible data flow from one to the other. |
static boolean |
isValidMapping(String context,
org.eclipse.stardust.common.Direction direction,
String accessPointId,
AccessPoint lhsPoint,
String lhsPath,
AccessPoint rhsPoint,
String rhsPath,
org.eclipse.stardust.engine.api.model.IActivity activity) |
public BridgeObject(Class endClass, org.eclipse.stardust.common.Direction direction)
public BridgeObject(Class endClass, org.eclipse.stardust.common.Direction direction, boolean genericType)
public static BridgeObject getBridge(AccessPoint ap, String path, org.eclipse.stardust.common.Direction direction, org.eclipse.stardust.engine.core.spi.extensions.runtime.AccessPathEvaluationContext context)
AccessPoint.ap - The access point to be dereferenced.path - The path expression to be used for dereferencing. Path analysis may hint
on the data flow direction of the resulting bridge.direction - The data flow direction, either Direction.INif a LHS bridge
is requested or Direction.OUTif a RHS bridge is requested.public Class getEndClass()
Object
if no static type information is available.public org.eclipse.stardust.common.Direction getDirection()
Direction.IN for a data sink or Direction.OUT for a data source.public boolean isGenericType()
public boolean acceptAssignmentFrom(BridgeObject rhs)
rhs.
Basic validity requires compatible data flow directions and type compatibility (if
available).rhs - The data source to check compatibility against.true if this bridge may accept assignments from the given data
source, false if not.public static boolean isValidMapping(String context, org.eclipse.stardust.common.Direction direction, AccessPoint lhsPoint, String lhsPath, AccessPoint rhsPoint, String rhsPath, org.eclipse.stardust.engine.api.model.IActivity activity)
AccessPoint dereferences are
compatible regarding possible data flow from one to the other.direction - The data flow direction.lhsPoint - The left access point.lhsPath - The left access point's dereference.rhsPoint - The right access point.rhsPath - The right access point's dereference.true if the two dereferences are compatible, false
if not.acceptAssignmentFrom(org.eclipse.stardust.engine.core.spi.extensions.model.BridgeObject)public static boolean isValidMapping(String context, org.eclipse.stardust.common.Direction direction, String accessPointId, AccessPoint lhsPoint, String lhsPath, AccessPoint rhsPoint, String rhsPath, org.eclipse.stardust.engine.api.model.IActivity activity)
Copyright © 2016 Eclipse Stardust. All Rights Reserved.