CA Identity Manager
Java SDK r12.5 SP 8

 

com.netegrity.llsdk6.imsapi.utility
Class VersionInfo

java.lang.Object
  extended by com.netegrity.llsdk6.imsapi.utility.VersionInfo

public class VersionInfo
extends java.lang.Object

The current Identity Manager version number.

Since:
Identity Manager 8.1

Constructor Summary
VersionInfo(int major, int minor, int sp, int build)
          Deprecated. As of R12.1, replaced by VersionInfo(int major, int minor, int sp, int cr, int build))
VersionInfo(int major, int minor, int sp, int cr, int build)
          Creates a version object containing integers for the major version number, minor version number, service pack number, cr number and build number.
VersionInfo(java.lang.String versionString)
          Creates a version object from a string representation of the complete version number.
 
Method Summary
 int getBuild()
          Retrieves the build portion of the version number.
 int getCRVersion()
          Retrieves the CR portion of the version number.
 int getMajorVersion()
          Retrieves the major portion of the version number.
 int getMinorVersion()
          Retrieves the minor portion of the version number.
 int getServicePack()
          Retrieves the service pack portion of the version number.
 void setBuild(int build)
          Sets the build portion of the version number.
 void setCRVersion(int cr)
          Sets the CR portion of the version number.
 void setMajorVersion(int major)
          Sets the major portion of the version number.
 void setMinorVersion(int minor)
          Sets the minor portion of the version number.
 void setServicePack(int sp)
          Sets the service pack portion of the version number.
 java.lang.String toString()
          Converts the version number to a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionInfo

@Deprecated
public VersionInfo(int major,
                              int minor,
                              int sp,
                              int build)
Deprecated. As of R12.1, replaced by VersionInfo(int major, int minor, int sp, int cr, int build))

Creates a version object containing integers for the major version number, minor version number, service pack number, and build number.

Parameters:
major - The major portion of the version number.
minor - The minor portion of the version number.
sp - The service pack number.
build - This version's build number.

VersionInfo

public VersionInfo(int major,
                   int minor,
                   int sp,
                   int cr,
                   int build)

Creates a version object containing integers for the major version number, minor version number, service pack number, cr number and build number.

Parameters:
major - The major portion of the version number.
minor - The minor portion of the version number.
sp - The service pack number.
cr - The CR portion of the version number.
build - This version's build number.

VersionInfo

public VersionInfo(java.lang.String versionString)

Creates a version object from a string representation of the complete version number.

The string should be in the following format, with the different portions of the version delimited by periods (.):
 major.minor.sp.cr.build
For example:
 8.0.2.101

Parameters:
versionString - The string representation of the complete version number.
Method Detail

getMajorVersion

public int getMajorVersion()

Retrieves the major portion of the version number.

Returns:
The major portion of the version number.

setMajorVersion

public void setMajorVersion(int major)

Sets the major portion of the version number.

Parameters:
major - The major portion of the version number.

getMinorVersion

public int getMinorVersion()

Retrieves the minor portion of the version number.

Returns:
The minor portion of the version number.

setMinorVersion

public void setMinorVersion(int minor)

Sets the minor portion of the version number.

Parameters:
minor - The minor portion of the version number.

getServicePack

public int getServicePack()

Retrieves the service pack portion of the version number.

Returns:
The service pack portion of the version number.

setServicePack

public void setServicePack(int sp)

Sets the service pack portion of the version number.

Parameters:
sp - The service pack portion of the version number.

getCRVersion

public int getCRVersion()

Retrieves the CR portion of the version number.

Returns:
The CR portion of the version number.

setCRVersion

public void setCRVersion(int cr)

Sets the CR portion of the version number.

Parameters:
sp - The CR portion of the version number.

getBuild

public int getBuild()

Retrieves the build portion of the version number.

Returns:
The build portion of the version number.

setBuild

public void setBuild(int build)

Sets the build portion of the version number.

Parameters:
build - The build portion of the version number.

toString

public java.lang.String toString()

Converts the version number to a string.

The string has the following format, with the different portions of the version delimited by periods (.):
 major.minor.sp.cr.build
For example:
 8.0.2.101

Overrides:
toString in class java.lang.Object

CA Identity Manager
Java SDK r12.5 SP 8

06/13/2011

© 2011 CA Technologies, Inc. All rights reserved.