Class DefaultModuleInfo
java.lang.Object
org.pentaho.reporting.libraries.base.boot.DefaultModuleInfo
- All Implemented Interfaces:
ModuleInfo
- Direct Known Subclasses:
AbstractModule
Provides a default implementation of the module info interface.
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConstructor.DefaultModuleInfo(String moduleClass, String majorVersion, String minorVersion, String patchLevel) Creates a new module info an initalizes it with the given values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo moduleinfos are equal,if they have the same module class.Returns the major version of the module.Returns the minor version of the module.Returns the class name of the module described implementation.Returns the patch level version of the module.inthashCode()Computes an hashcode for this module information.voidsetMajorVersion(String majorVersion) Defines the major version of the module.voidsetMinorVersion(String minorVersion) Defines the minor version of the module.voidsetModuleClass(String moduleClass) Defines the module class name.voidsetPatchLevel(String patchLevel) Defines the patch level version of the module.toString()Returns a string representation of this module information.
-
Constructor Details
-
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 Details
-
getModuleClass
Returns the class name of the module described implementation.- Specified by:
getModuleClassin interfaceModuleInfo- Returns:
- the module class name.
- See Also:
-
setModuleClass
Defines the module class name.- Parameters:
moduleClass- the class name of the module implementation.
-
getMajorVersion
Returns the major version of the module. This property may be null to indicate that the module version is not specified.- Specified by:
getMajorVersionin interfaceModuleInfo- Returns:
- the major version.
- See Also:
-
setMajorVersion
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:
-
getMinorVersion
Returns the minor version of the module. This property may be null to indicate that the module version is not specified.- Specified by:
getMinorVersionin interfaceModuleInfo- Returns:
- the minor version.
- See Also:
-
setMinorVersion
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:
-
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:
getPatchLevelin interfaceModuleInfo- Returns:
- the patch level version.
- See Also:
-
setPatchLevel
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:
-
equals
Two moduleinfos are equal,if they have the same module class. -
hashCode
public int hashCode()Computes an hashcode for this module information. -
toString
Returns a string representation of this module information.
-