public class ResourceLevel
extends java.lang.Object
implements java.io.Serializable
In most cases within the IBM Toolbox for Java, the level
is the version, release, and modification level of the system
to which you are connected, in the form VxRxMx
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
V4R4M0
Deprecated.
Constant value for the level representing V4R4M0.
|
static java.lang.String |
V4R5M0
Deprecated.
Constant value for the level representing V4R5M0.
|
static java.lang.String |
V5R1M0
Deprecated.
Constant value for the level representing V5R1M0.
|
Constructor and Description |
---|
ResourceLevel()
Deprecated.
Constructs a ResourceLevel object which indicates that all levels are supported.
|
ResourceLevel(java.lang.String minLevel)
Deprecated.
Constructs a ResourceLevel object.
|
ResourceLevel(java.lang.String minLevel,
java.lang.String maxLevel)
Deprecated.
Constructs a ResourceLevel object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkLevel(int vrm)
Deprecated.
Indicates if the VRM is within the range of this level.
|
boolean |
checkLevel(java.lang.String level)
Deprecated.
Indicates if the specified level is within the range of this level.
|
java.lang.String |
getMaxLevel()
Deprecated.
Returns the maximum supported level.
|
java.lang.String |
getMinLevel()
Deprecated.
Returns the minimum supported level.
|
java.lang.String |
toString()
Deprecated.
Returns a String representation of the level.
|
static java.lang.String |
vrmToLevel(int vrm)
Deprecated.
Converts the VRM to a level.
|
public static final java.lang.String V4R4M0
public static final java.lang.String V4R5M0
public static final java.lang.String V5R1M0
public ResourceLevel()
public ResourceLevel(java.lang.String minLevel)
minLevel
- The minimum supported level, or null if all levels are supported.public ResourceLevel(java.lang.String minLevel, java.lang.String maxLevel)
minLevel
- The minimum supported level, or null if all previous levels are supported.maxLevel
- The maximum supported level, or null if all following levels are supported.public boolean checkLevel(int vrm)
vrm
- The VRM for a system.AS400.getVRM()
public boolean checkLevel(java.lang.String level)
level
- The specified level.public java.lang.String getMinLevel()
public java.lang.String getMaxLevel()
public static java.lang.String vrmToLevel(int vrm)
vrm
- The VRM for a system.AS400.getVRM()
public java.lang.String toString()
toString
in class java.lang.Object