|
WebLogic Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.bea.wlpi.common.VersionInfo
Holds information about a version number. Objects of this class are
available in both clients and server (via the
ServerProperties session bean,
and can be compared with each other to determine up/down level
compatibility.
Objects of this class override the boolean equals(Object) and
implement the comparable interface.
| Constructor Summary | |
VersionInfo(int majorVersion,
int minorVersion,
int volume,
java.lang.String build,
java.lang.String name)
Create a new VersionInfo object. |
|
VersionInfo(int majorVersion,
int minorVersion,
java.lang.String build,
java.lang.String name)
Create a new VersionInfo object. |
|
VersionInfo(java.lang.String version)
Create a new VersionInfo object from a string. |
|
| Method Summary | |
int |
compareTo(java.lang.Object obj)
Compare two VersionInfo objects. |
boolean |
equals(java.lang.Object obj)
Test two VersionInfo objects for equality. |
java.lang.String |
getBuild()
Return the build number or name. |
static VersionInfo |
getDefaultVersion()
Return the information about the first release of WebLogic Process Integrator. |
int |
getMajorVersion()
Return the major version number. |
int |
getMinorVersion()
Return the minor version number. |
java.lang.String |
getName()
Return the release name. |
java.lang.String |
getVolume()
Return the volume number. |
java.lang.String |
toString()
Return a string representation of the object. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public VersionInfo(int majorVersion,
int minorVersion,
java.lang.String build,
java.lang.String name)
VersionInfo object.
majorVersion - The major version number (e.g., the 1 in "1.2").minorVersion - The minor version number (e.g., the 2 in "1.2").build - The build number or name.name - The release name (e.g. "Chicoutimi").
public VersionInfo(int majorVersion,
int minorVersion,
int volume,
java.lang.String build,
java.lang.String name)
VersionInfo object.
majorVersion - The major version number (e.g., the 1 in "1.2").minorVersion - The minor version number (e.g., the 2 in "1.2").volume - The volume number (e.g., the 3 in "1.2.3").
Used only in volume releases.build - The build number or name.name - The release name (e.g. "Chicoutimi").public VersionInfo(java.lang.String version)
VersionInfo object from a string.
version - The version number expressed in Dewey Decimal format
(e.g., "1.2.3"). The string can contain between two and four
dot-separated integer components, corresponding to the majorVersion,
minorVersion, volume, build values. If there are three such
components, the third is interpreted as the volume number: to specify a
build number, supply four tokens (the volume number can be 0).| Method Detail |
public static final VersionInfo getDefaultVersion()
public final int getMajorVersion()
public final int getMinorVersion()
public final java.lang.String getVolume()
public final java.lang.String getBuild()
public final java.lang.String getName()
public boolean equals(java.lang.Object obj)
VersionInfo objects for equality. The comparison
is based solely on the major and minor version numbers.
obj - Object with which to compare this one.true if obj is an instance of
VersionInfo with the same majorVersion and
minorVersion as this one.compareTo(java.lang.Object)public int compareTo(java.lang.Object obj)
VersionInfo objects.
obj - Object with which to compare this one.majorVersion and
minorVersion members of the two objects.o is not an instance of
VersionInfo.equals(java.lang.Object)public java.lang.String toString()
majorVersion, minorVersion,
volume and build members, separated by periods
(e.g., "1.2.3 SP4"). Volume and build (i.e., Service Pack)
are only shown if they are non-zero.
|
WebLogic Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||