|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.module.CmsModuleDependency
public class 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(String moduleName,
CmsModuleVersion minVersion)
Generates a new module dependency. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object obj)
|
boolean |
dependesOn(CmsModuleDependency other)
Checks if this module depedency depends on another given module dependency. |
boolean |
equals(Object obj)
|
String |
getName()
Returns the name of the module dependency. |
CmsModuleVersion |
getVersion()
Returns the minimum version of the dependency. |
int |
hashCode()
|
void |
setName(String value)
Sets the name of a module dependency. |
void |
setVersion(CmsModuleVersion value)
Sets the version of a module dependency. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsModuleDependency()
public CmsModuleDependency(String moduleName,
CmsModuleVersion minVersion)
moduleName - the name of the module dependencyminVersion - the minimum version of the dependency| Method Detail |
|---|
public int compareTo(Object obj)
compareTo in interface Comparable<Object>Comparable.compareTo(java.lang.Object)public boolean dependesOn(CmsModuleDependency other)
other - the other dependency to check against
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String getName()
public CmsModuleVersion getVersion()
public int hashCode()
hashCode in class ObjectObject.hashCode()public void setName(String value)
value - the name of a module dependencypublic void setVersion(CmsModuleVersion value)
value - the version of a module dependencypublic String toString()
toString in class ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||