|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.core.spi.extensions.model.BridgeObject
public class BridgeObject
Provides an abstraction of a dereferenced AccessPoint. Contains information
about the data flow direction supported by this bridge and the type of the data.
| Constructor Summary | |
|---|---|
BridgeObject(Class endClass,
org.eclipse.stardust.common.Direction direction)
|
|
BridgeObject(Class endClass,
org.eclipse.stardust.common.Direction direction,
boolean genericType)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BridgeObject(Class endClass,
org.eclipse.stardust.common.Direction direction)
public BridgeObject(Class endClass,
org.eclipse.stardust.common.Direction direction,
boolean genericType)
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||