Class ProjectInformation
java.lang.Object
org.pentaho.reporting.libraries.base.versioning.DependencyInformation
org.pentaho.reporting.libraries.base.versioning.ProjectInformation
- Direct Known Subclasses:
LibBaseInfo
The project information structure contains information about the current project. This is an extended version
of the dependency information enriched with information about the boot-process and a list of dependencies.
This class needs to be subclassed by each project that wants to participate in the global boot process.
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLibrary
(DependencyInformation library) Adds a library.java.lang.String
Returns the boot class.java.lang.String
Returns the copyright string for thie project.java.lang.String
Returns the internal name of the project.Returns a list of libraries used by the project.Returns a list of optional libraries used by the project.java.lang.String
Returns the product ID from the Manifest.java.lang.String
Returns the release build number from the Manifest.java.lang.String
Returns the release candidate token from the Manifest.java.lang.String
Returns the release major version number from the Manifest.java.lang.String
Returns the release milestone number from the Manifest.java.lang.String
Returns the release minor version number from the Manifest.java.lang.String
Returns the release number from the Manifest.java.lang.String
Returns the version number from the Manifest.Methods inherited from class org.pentaho.reporting.libraries.base.versioning.DependencyInformation
equals, getInfo, getLicenseName, getName, hashCode
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getCopyright
public java.lang.String getCopyright()Returns the copyright string for thie project.- Returns:
- the copyright string (might be null).
-
getInternalName
public java.lang.String getInternalName()Returns the internal name of the project.- Returns:
- the internal name, never null.
-
getBootClass
public java.lang.String getBootClass()Returns the boot class.- Returns:
- the bootclass (might be null).
-
getLibraries
Returns a list of libraries used by the project.- Returns:
- the list of libraries.
-
addLibrary
Adds a library.- Parameters:
library
- the library.
-
getOptionalLibraries
Returns a list of optional libraries used by the project.- Returns:
- the list of libraries.
-
getVersion
public java.lang.String getVersion()Returns the version number from the Manifest.- Overrides:
getVersion
in classDependencyInformation
- Returns:
- the version, or null if no version information is known.
-
getProductId
public java.lang.String getProductId()Returns the product ID from the Manifest.- Returns:
- the product ID, or null if none is specified in the manifest.
-
getReleaseMilestone
public java.lang.String getReleaseMilestone()Returns the release milestone number from the Manifest.- Returns:
- the release milestone number, or null if none is specified in the manifest.
-
getReleaseMinor
public java.lang.String getReleaseMinor()Returns the release minor version number from the Manifest.- Returns:
- the release minor version number, or null if none is specified in the manifest.
-
getReleaseMajor
public java.lang.String getReleaseMajor()Returns the release major version number from the Manifest.- Returns:
- the release major version number, or null if none is specified in the manifest.
-
getReleaseCandidateToken
public java.lang.String getReleaseCandidateToken()Returns the release candidate token from the Manifest.- Returns:
- the release candidate token, or null if none is specified in the manifest.
-
getReleaseNumber
public java.lang.String getReleaseNumber()Returns the release number from the Manifest.- Returns:
- the release number, or null if none is specified in the manifest.
-
getReleaseBuildNumber
public java.lang.String getReleaseBuildNumber()Returns the release build number from the Manifest.- Returns:
- the release build number, or null if none is specified in the manifest.
-