Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.bea.wcp.diameter.util
Class Version

java.lang.Object
  extended by com.bea.wcp.diameter.util.Version


public class Version
extends Object

Reads WebLogic product release information from manifest.


Constructor Summary
Version(Manifest man)
          Reads version information from specified Manifest.
Version(String product, String release, String vendor)
           

 

Method Summary
 int getMajor()
           
 int getMinor()
           
 int getPatchLevel()
           
 String getProduct()
          Returns the product name.
 String getRelease()
          Returns the product release number string.
 int getReleaseNumber()
          Returns product release number of of the form 0xAABBCCDD, where 'AA' is the major, 'BB' is the minor, 'CC' is the service pack number, and 'DD' is the patch number.
 int getServicePack()
           
 String getVendor()
          Returns the vendor name.
static Version[] getVersions(ClassLoader loader)
           
 String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Version

public Version(Manifest man)
Reads version information from specified Manifest.
Parameters:
man - the Manifest whose version information is to be read
Throws:
IllegalArgumentException - if the manifest contained invalid version information

Version

public Version(String product,
               String release,
               String vendor)

Method Detail

getVersions

public static Version[] getVersions(ClassLoader loader)

getProduct

public String getProduct()
Returns the product name.

getRelease

public String getRelease()
Returns the product release number string. The product release number string is of the form major.minor[.service_pack[.patch]]

getVendor

public String getVendor()
Returns the vendor name.

getReleaseNumber

public int getReleaseNumber()
Returns product release number of of the form 0xAABBCCDD, where 'AA' is the major, 'BB' is the minor, 'CC' is the service pack number, and 'DD' is the patch number. Returns 0 if release number unavailable.

getMajor

public int getMajor()

getMinor

public int getMinor()

getServicePack

public int getServicePack()

getPatchLevel

public int getPatchLevel()

toString

public String toString()
Overrides:
toString in class Object

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.