com.ibm.as400.resource
Class ResourceLevel

java.lang.Object
  extended bycom.ibm.as400.resource.ResourceLevel
All Implemented Interfaces:
Serializable

Deprecated. Use packages com.ibm.as400.access and com.ibm.as400.access.list instead.

public class ResourceLevel
extends Object
implements Serializable

The ResourceLevel class represents a range of supported levels. A level is a string which describes some level of support.

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.

See Also:
Serialized Form

Field Summary
static String V4R4M0
          Deprecated. Constant value for the level representing V4R4M0.
static String V4R5M0
          Deprecated. Constant value for the level representing V4R5M0.
static String V5R1M0
          Deprecated. Constant value for the level representing V5R1M0.
 
Constructor Summary
ResourceLevel()
          Deprecated. Constructs a ResourceLevel object which indicates that all levels are supported.
ResourceLevel(String minLevel)
          Deprecated. Constructs a ResourceLevel object.
ResourceLevel(String minLevel, String maxLevel)
          Deprecated. Constructs a ResourceLevel object.
 
Method Summary
 boolean checkLevel(int vrm)
          Deprecated. Indicates if the VRM is within the range of this level.
 boolean checkLevel(String level)
          Deprecated. Indicates if the specified level is within the range of this level.
 String getMaxLevel()
          Deprecated. Returns the maximum supported level.
 String getMinLevel()
          Deprecated. Returns the minimum supported level.
 String toString()
          Deprecated. Returns a String representation of the level.
static String vrmToLevel(int vrm)
          Deprecated. Converts the VRM to a level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

V4R4M0

public static final String V4R4M0
Deprecated. 
Constant value for the level representing V4R4M0.

See Also:
Constant Field Values

V4R5M0

public static final String V4R5M0
Deprecated. 
Constant value for the level representing V4R5M0.

See Also:
Constant Field Values

V5R1M0

public static final String V5R1M0
Deprecated. 
Constant value for the level representing V5R1M0.

See Also:
Constant Field Values
Constructor Detail

ResourceLevel

public ResourceLevel()
Deprecated. 
Constructs a ResourceLevel object which indicates that all levels are supported.


ResourceLevel

public ResourceLevel(String minLevel)
Deprecated. 
Constructs a ResourceLevel object.

Parameters:
minLevel - The minimum supported level, or null if all levels are supported.

ResourceLevel

public ResourceLevel(String minLevel,
                     String maxLevel)
Deprecated. 
Constructs a ResourceLevel object.

Parameters:
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.
Method Detail

checkLevel

public boolean checkLevel(int vrm)
Deprecated. 
Indicates if the VRM is within the range of this level.

Parameters:
vrm - The VRM for a system.
Returns:
true if the VRM is within the range of this level, false otherwise.
See Also:
AS400.getVRM()

checkLevel

public boolean checkLevel(String level)
Deprecated. 
Indicates if the specified level is within the range of this level.

Parameters:
level - The specified level.
Returns:
true if the specified level is within the range of this level, false otherwise.

getMinLevel

public String getMinLevel()
Deprecated. 
Returns the minimum supported level.

Returns:
The minimum supported level, or null if all previous levels are supported.

getMaxLevel

public String getMaxLevel()
Deprecated. 
Returns the maximum supported level.

Returns:
The maximum supported level, or null if all following levels are supported.

vrmToLevel

public static String vrmToLevel(int vrm)
Deprecated. 
Converts the VRM to a level.

Parameters:
vrm - The VRM for a system.
Returns:
The level.
See Also:
AS400.getVRM()

toString

public String toString()
Deprecated. 
Returns a String representation of the level.

Returns:
The String representation of the level.