Put your logo here!

TOC PREV NEXT



Chapter 3 InstallVersion


You use InstallVersion objects to contain version information for software.

InstallVersion Overview

This object and its methods are used both when triggering a download, to see whether a particular version needs to be installed, and when installing the software. The init() method associates a particular version with an InstallVersion object, the toString() method converts versions in various formats to a string, and the compareTo() method compares these string and indicates the relationship between the two versions. Each of the version parameters is also available as a separate property of the InstallVersion object.

Method Reference

compareTo Compares the version information specified in this object to the version information specified in the version parameter.
init Initialize an InstallVersion object.
toString Converts an InstallVersion init to a string.

Property Reference

major Most siginificant element of the InstallVersion object. e.g. major version of Netscape 6 is "6"
minor Second most siginificant elementof the InstallVersion object. e.g. minor version of Netscape Communicator 4.7 is "7"
release Second least siginificant elementof the InstallVersion object.
build Least siginificant elementof the InstallVersion object. e.g. buildID of Netscape 6 is represented by a time stamp of teh format: YYYYMMDDHH: 2001031808 means in the year 2001, in the month of March, on the 18th day of the month, at 8:00am. the product was built.


Netscape Communications
devedge.netscape.com
TOC PREV NEXT