Class DefaultModuleInfo
- java.lang.Object
-
- org.pentaho.reporting.libraries.base.boot.DefaultModuleInfo
-
- All Implemented Interfaces:
ModuleInfo
- Direct Known Subclasses:
AbstractModule
public class DefaultModuleInfo extends Object implements ModuleInfo
Provides a default implementation of the module info interface.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description DefaultModuleInfo()
DefaultConstructor.DefaultModuleInfo(String moduleClass, String majorVersion, String minorVersion, String patchLevel)
Creates a new module info an initalizes it with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
DefaultModuleInfo
public DefaultModuleInfo()
DefaultConstructor.
-
DefaultModuleInfo
public DefaultModuleInfo(String moduleClass, String majorVersion, String minorVersion, String patchLevel)
Creates a new module info an initalizes it with the given values.- Parameters:
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.- Throws:
NullPointerException
- if the moduleClass is null.
-
-
Method Detail
-
getModuleClass
public String getModuleClass()
Returns the class name of the module described implementation.- Specified by:
getModuleClass
in interfaceModuleInfo
- Returns:
- the module class name.
- See Also:
ModuleInfo.getModuleClass()
-
setModuleClass
public void setModuleClass(String moduleClass)
Defines the module class name.- Parameters:
moduleClass
- the class name of the module implementation.
-
getMajorVersion
public String getMajorVersion()
Returns the major version of the module. This property may be null to indicate that the module version is not specified.- Specified by:
getMajorVersion
in interfaceModuleInfo
- Returns:
- the major version.
- See Also:
ModuleInfo.getMajorVersion()
-
setMajorVersion
public void setMajorVersion(String majorVersion)
Defines the major version of the module. This property may be null to indicate that the module version is not specified.- Parameters:
majorVersion
- the major version.- See Also:
ModuleInfo.getMajorVersion()
-
getMinorVersion
public String getMinorVersion()
Returns the minor version of the module. This property may be null to indicate that the module version is not specified.- Specified by:
getMinorVersion
in interfaceModuleInfo
- Returns:
- the minor version.
- See Also:
ModuleInfo.getMajorVersion()
-
setMinorVersion
public void setMinorVersion(String minorVersion)
Defines the minor version of the module. This property may be null to indicate that the module version is not specified.- Parameters:
minorVersion
- the minor version.- See Also:
ModuleInfo.getMajorVersion()
-
getPatchLevel
public String getPatchLevel()
Returns the patch level version of the module. This property may be null to indicate that the module version is not specified.- Specified by:
getPatchLevel
in interfaceModuleInfo
- Returns:
- the patch level version.
- See Also:
ModuleInfo.getMajorVersion()
-
setPatchLevel
public void setPatchLevel(String patchLevel)
Defines the patch level version of the module. This property may be null to indicate that the module version is not specified.- Parameters:
patchLevel
- the patch level version.- See Also:
ModuleInfo.getMajorVersion()
-
equals
public boolean equals(Object o)
Two moduleinfos are equal,if they have the same module class.
-
hashCode
public int hashCode()
Computes an hashcode for this module information.- Overrides:
hashCode
in classObject
- Returns:
- the hashcode.
- See Also:
Object.hashCode()
-
toString
public String toString()
Returns a string representation of this module information.- Overrides:
toString
in classObject
- Returns:
- a string describing this class.
- See Also:
Object.toString()
-
-