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