|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ehsbe.commons.util.Version
public class Version
Get the version of the package.
| Constructor Summary | |
|---|---|
Version()
|
|
| Method Summary | |
|---|---|
boolean |
allRightsReserved()
Indicate, whether the copyright owner aka vendor has reserved all rights on the software. |
String |
getBuildNumber()
Get the build ID |
String |
getEndYear()
Get the year of development cycle, where this package was last time maintained. |
String |
getFromYear()
Get the year of start of the development cycle of this package. |
String |
getLicensePath()
Get the resource path for the plain text license file. |
ImageIcon |
getLogo()
Get the Vendor logo. |
String |
getProductName()
Get the name of the product. |
String |
getProductVersion()
Get the version of the product. |
String |
getShortLicenseName()
Get the short name of the license for the software. |
String |
getThirdPartyInfoPath()
Get the path to for third party license infos. |
String |
getVendorName()
Get the human readable name of the vendor. |
String |
getVendorURL()
Get the URL of the vendor for this package. |
boolean |
isSubjectToLicenseTerms()
Check, whether a note should be printed, whether the software is subject to special license terms. |
static void |
main(String[] args)
Print the version/copyright/vendor information for this package. |
void |
printVersionInfo()
Print the version/copyright/vendor information for this package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Version()
| Method Detail |
|---|
public String getProductName()
getProductName in interface VersionInfonull.public String getProductVersion()
getProductVersion in interface VersionInfonull.public String getBuildNumber()
getBuildNumber in interface VersionInfonull.public String getFromYear()
getFromYear in interface VersionInfonull.public String getEndYear()
getEndYear in interface VersionInfonull.public String getVendorName()
getVendorName in interface VersionInfonull but can be.public String getVendorURL()
getVendorURL in interface VersionInfonull.public void printVersionInfo()
printVersionInfo in interface VersionInfopublic String getLicensePath()
getLicensePath in interface VersionInfonull but can be.public String getThirdPartyInfoPath()
<info>
<software>
<name>Product or Software name</name>
<version>Product/Software Version</version>
<copyright>Copyright string</copyright>
<type>License type</type>
<url>URL to the product or vendor</url>
</software>
<software>
...
</software>
</info>
E.g.:
<info>
<software>
<name>Swing Extensions</name>
<version>1.0</version>
<copyright>Copyright 2004 Sun Microsystems, Inc. All rights reserved.</copyright>
<type>GNU Lesser General Public License (LGPL)</type>
<url>https://swingx.dev.java.net/</url>
</software>
</info>
getThirdPartyInfoPath in interface VersionInfonull if no thirdparty software is used
or no infos about it should be shown.public ImageIcon getLogo()
getLogo in interface VersionInfonull if not available.public static void main(String[] args)
args - nonepublic boolean allRightsReserved()
allRightsReserved in interface VersionInfotrue if the vendor/copyright owner reserved all rights.public String getShortLicenseName()
null if there
is no special name.
getShortLicenseName in interface VersionInfonull if not applicable, the short name of the license
otherwise.public boolean isSubjectToLicenseTerms()
isSubjectToLicenseTerms in interface VersionInfotrue if a note should be displayed.
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||