Class DependencyInformation
java.lang.Object
org.pentaho.reporting.libraries.base.versioning.DependencyInformation
- Direct Known Subclasses:
ProjectInformation
An data-structure documenting external dependencies. Use this in your ProjectInformation implementation to tell users
what other libraries you use to give them proper credit.
- Author:
- : Thomas Morgner
-
Constructor Summary
ConstructorDescriptionDependencyInformation
(String name) Creates a minimal dependency information object for the library with the given name.DependencyInformation
(String name, String version, String licenseName, String info) Creates a minimal dependency information object for the library with the given name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this object for equality.getInfo()
Returns the extra information.Returns the name of the license of this dependency.getName()
Returns the name of the dependency, which is never null.Returns the version number.int
hashCode()
Computes a hashcode based on the name of the dependency.protected void
Redefines the extra information of the dependency.protected void
setLicenseName
(String licenseName) Redefines the license name of the dependency.protected void
setVersion
(String version) Redefines the version of the dependency.
-
Constructor Details
-
DependencyInformation
Creates a minimal dependency information object for the library with the given name.- Parameters:
name
- the name of the library, never null.
-
DependencyInformation
Creates a minimal dependency information object for the library with the given name. All properties but the name are optional.- Parameters:
name
- the name of the library, never null.version
- The version of the library, if known.licenseName
- The license the library is distributed under.info
- Some more information, liek a web-site or comment.
-
-
Method Details
-
setVersion
Redefines the version of the dependency.- Parameters:
version
- the version.
-
setLicenseName
Redefines the license name of the dependency.- Parameters:
licenseName
- the name of the license.
-
setInfo
Redefines the extra information of the dependency.- Parameters:
info
- the version.
-
getName
Returns the name of the dependency, which is never null.- Returns:
- the name.
-
getVersion
Returns the version number.- Returns:
- the version information, or null if no version information is known.
-
getLicenseName
Returns the name of the license of this dependency.- Returns:
- the license name.
-
getInfo
Returns the extra information.- Returns:
- the text information, or null if no extra information is known.
-
equals
Tests this object for equality. The object is equal if the name matches, the extra information is ignored. -
hashCode
public int hashCode()Computes a hashcode based on the name of the dependency.
-