public class DefaultModuleInfo extends Object implements ModuleInfo
Constructor and Description |
---|
DefaultModuleInfo()
DefaultConstructor.
|
DefaultModuleInfo(String moduleClass,
String majorVersion,
String minorVersion,
String patchLevel)
Creates a new module info an initalizes it with the given values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Two moduleinfos are equal,if they have the same module class.
|
String |
getMajorVersion()
Returns the major version of the module.
|
String |
getMinorVersion()
Returns the minor version of the module.
|
String |
getModuleClass()
Returns the class name of the module described implementation.
|
String |
getPatchLevel()
Returns the patch level version of the module.
|
int |
hashCode()
Computes an hashcode for this module information.
|
void |
setMajorVersion(String majorVersion)
Defines the major version of the module.
|
void |
setMinorVersion(String minorVersion)
Defines the minor version of the module.
|
void |
setModuleClass(String moduleClass)
Defines the module class name.
|
void |
setPatchLevel(String patchLevel)
Defines the patch level version of the module.
|
String |
toString()
Returns a string representation of this module information.
|
public DefaultModuleInfo()
public DefaultModuleInfo(String moduleClass, String majorVersion, String minorVersion, String patchLevel)
moduleClass
- the class name of the module implementation holding the module
description.majorVersion
- the modules major version.minorVersion
- the modules minor version.patchLevel
- the modules patchlevel.NullPointerException
- if the moduleClass is null.public String getModuleClass()
getModuleClass
in interface ModuleInfo
ModuleInfo.getModuleClass()
public void setModuleClass(String moduleClass)
moduleClass
- the class name of the module implementation.public String getMajorVersion()
getMajorVersion
in interface ModuleInfo
ModuleInfo.getMajorVersion()
public void setMajorVersion(String majorVersion)
majorVersion
- the major version.ModuleInfo.getMajorVersion()
public String getMinorVersion()
getMinorVersion
in interface ModuleInfo
ModuleInfo.getMajorVersion()
public void setMinorVersion(String minorVersion)
minorVersion
- the minor version.ModuleInfo.getMajorVersion()
public String getPatchLevel()
getPatchLevel
in interface ModuleInfo
ModuleInfo.getMajorVersion()
public void setPatchLevel(String patchLevel)
patchLevel
- the patch level version.ModuleInfo.getMajorVersion()
public boolean equals(Object o)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()