|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InterfaceContractMapper
The InterfaceContractMapper is responsible to match interfaces
Method Summary | |
---|---|
boolean |
checkCompatibility(InterfaceContract source,
InterfaceContract target,
boolean ignoreCallback,
boolean silent)
|
boolean |
isCompatible(DataType source,
DataType target,
boolean remotable)
Test if the source data type is compatible with the target data type. |
boolean |
isCompatible(InterfaceContract source,
InterfaceContract target)
Check the compatiblity of the source and the target interface contracts. |
boolean |
isCompatible(Interface source,
Interface target)
|
boolean |
isCompatible(Operation source,
Operation target,
boolean remotable)
Check if source operation is compatible with the target operation |
Operation |
map(Interface target,
Operation source)
Map the source operation to a compatible operation in the target interface |
Method Detail |
---|
boolean isCompatible(InterfaceContract source, InterfaceContract target)
A wire may only connect a source to a target if the target implements an interface that is compatible with the interface required by the source. The source and the target are compatible if:
Please note this test is not symetric: the success of isCompatible(A, B) does NOT imply isCompatible(B, A)
source
- The source interface contracttarget
- The target interface contract
boolean checkCompatibility(InterfaceContract source, InterfaceContract target, boolean ignoreCallback, boolean silent) throws IncompatibleInterfaceContractException
source
- target
- ignoreCallback
- silent
-
IncompatibleInterfaceContractException
boolean isCompatible(DataType source, DataType target, boolean remotable)
source
- The source data typetarget
- The target data type
boolean isCompatible(Operation source, Operation target, boolean remotable)
source
- The source operationtarget
- The target operation
boolean isCompatible(Interface source, Interface target)
source
- target
-
Operation map(Interface target, Operation source)
target
- The target interfacesource
- The source operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |