|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.dap.ServerVersion
This class is a convenient place to store the major and minor version number of the remote server, as well as the full version string. It is used so that classes which implement ClientIO don't need any knowledge of the DDS class.
ClientIO
,
DDS
Constructor Summary | |
ServerVersion(int major,
int minor)
Construct a new ServerVersion, setting major and minor version explicitly. |
|
ServerVersion(java.lang.String ver)
Construct a new ServerVersion, setting major and minor version based on the full version string. |
Method Summary | |
static java.lang.String |
getCurrentVersion()
Returns the DODS core version as a String . |
int |
getMajor()
Returns the major version number. |
int |
getMinor()
Returns the minor version number. |
java.lang.String |
toString()
Returns the full version string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServerVersion(java.lang.String ver)
ver
- the full version string.public ServerVersion(int major, int minor)
major
- the major version number.minor
- the minor version number.Method Detail |
public final int getMajor()
public final int getMinor()
public final java.lang.String toString()
public static java.lang.String getCurrentVersion()
String
.
This was a convenient place to put this information, rather than
creating a new class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |