|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.module.CmsModuleDependency
Describes an OpenCms module dependency.
Module dependencies are checked if a module is imported or deleted. If a module A requires certain resources (like Java classes) from another module B, a should be made dependend on B.
Constructor Summary | |
CmsModuleDependency()
Generates a new, empty module dependency. |
|
CmsModuleDependency(java.lang.String moduleName,
CmsModuleVersion minVersion)
Generates a new module dependency. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
|
boolean |
dependesOn(CmsModuleDependency other)
Checks if this module depedency depends on another given module dependency. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name of the module dependency. |
CmsModuleVersion |
getVersion()
Returns the minimum version of the dependency. |
int |
hashCode()
|
void |
setName(java.lang.String value)
Sets the name of a module dependency. |
void |
setVersion(CmsModuleVersion value)
Sets the version of a module dependency. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CmsModuleDependency()
public CmsModuleDependency(java.lang.String moduleName, CmsModuleVersion minVersion)
moduleName
- the name of the module dependencyminVersion
- the minimum version of the dependencyMethod Detail |
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public boolean dependesOn(CmsModuleDependency other)
other
- the other dependency to check against
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
public java.lang.String getName()
public CmsModuleVersion getVersion()
public int hashCode()
Object.hashCode()
public void setName(java.lang.String value)
value
- the name of a module dependencypublic void setVersion(CmsModuleVersion value)
value
- the version of a module dependencypublic java.lang.String toString()
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |