|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.modules.ModuleDescription.Dependency
A type of dependency that the module can have on its environment.
ModuleDescription
Field Summary | |
static int |
COMPARE_ANY
No comparison, just require the dependency to be present. |
static int |
COMPARE_IMPL
Comparison by implementation version. |
static int |
COMPARE_SPEC
Comparison by specification version. |
static int |
TYPE_IDE
Dependency on the IDE. |
static int |
TYPE_JAVA
Dependency on Java. |
static int |
TYPE_MODULE
Dependency on another module. |
static int |
TYPE_PACKAGE
Dependency on a package. |
Method Summary | |
String |
checkForMiss(ModuleDescription[] otherModules)
Check whether this dependency is currently satisfied by the supplied parameters. |
boolean |
equals(Object o)
|
int |
getComparison()
Get the comparison type. |
String |
getName()
Get the name. |
int |
getType()
Get the type. |
String |
getVersion()
Get the version. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TYPE_MODULE
public static final int TYPE_PACKAGE
public static final int TYPE_JAVA
public static final int TYPE_IDE
public static final int COMPARE_SPEC
ModuleDescription.compatibleWith(java.lang.String, java.lang.String)
public static final int COMPARE_IMPL
public static final int COMPARE_ANY
Method Detail |
public int getType()
public String getName()
public int getComparison()
public String getVersion()
null
)public String checkForMiss(ModuleDescription[] otherModules) throws IllegalModuleException
TYPE_PACKAGE
, the check is against whether
that package is loaded into the classloader used by the invoking class.
The following system properties, with sample values, are used to check dependencies
of type TYPE_IDE
:
Name | Description | Sample |
---|---|---|
org.openide.specification.version | Specification version | 1.0.12 |
org.openide.version | Implementation version | build #999 |
org.openide.major.version | "Code name", i.e. IDE incompatible release | IDE/2 |
otherModules
- other modules which this dependency might requirenull
if satisfied, else a message explaining why it was not satisfiedpublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |