|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CompatibilityPolicy
This interface represents the naming and version numbering policy of import and export identifiers for the ImportSearchPolicy. A concrete implementation of this interface is required to create an instance of ImportSearchPolicy. The sole purpose of this interface is to allow the ImportSearchPolicy to determine if one import/export identifier and version is compatible with another.
ImportSearchPolicy| Method Summary | |
|---|---|
int |
compare(java.lang.Object leftId,
java.lang.Object leftVersion,
java.lang.Object rightId,
java.lang.Object rightVersion)
Compares two import/export identifiers. |
boolean |
isCompatible(java.lang.Object leftId,
java.lang.Object leftVersion,
java.lang.Object rightId,
java.lang.Object rightVersion)
Returns whether the first import/export identifer is compatible with the second; this method should not throw any exceptions. |
| Method Detail |
|---|
int compare(java.lang.Object leftId,
java.lang.Object leftVersion,
java.lang.Object rightId,
java.lang.Object rightVersion)
leftId - the identifier to test for compatibility.leftVersion - the version number to test for compatibility.rightId - the identifier used as the compatibility base line.rightVersion - the version used as the compatibility base line.
java.lang.IllegalArgumentException - if the two identifiers
are not comparable, i.e., they refer to intrinsically different
entities.
boolean isCompatible(java.lang.Object leftId,
java.lang.Object leftVersion,
java.lang.Object rightId,
java.lang.Object rightVersion)
leftId - the identifier to test for compatibility.leftVersion - the version number to test for compatibility.rightId - the identifier used as the compatibility base line.rightVersion - the version used as the compatibility base line.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||