com.ibm.as400.resource

Class ResourceLevel

  • java.lang.Object
    • com.ibm.as400.resource.ResourceLevel
  • All Implemented Interfaces:
    java.io.Serializable

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

    public class ResourceLevel
    extends java.lang.Object
    implements java.io.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

      Fields 
      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 Summary

      Constructors 
      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.
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • V4R4M0

        public static final java.lang.String V4R4M0
        Deprecated. 
        Constant value for the level representing V4R4M0.
        See Also:
        Constant Field Values
      • V4R5M0

        public static final java.lang.String V4R5M0
        Deprecated. 
        Constant value for the level representing V4R5M0.
        See Also:
        Constant Field Values
      • V5R1M0

        public static final java.lang.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(java.lang.String minLevel)
        Deprecated. 
        Constructs a ResourceLevel object.
        Parameters:
        minLevel - The minimum supported level, or null if all levels are supported.
      • ResourceLevel

        public ResourceLevel(java.lang.String minLevel,
                     java.lang.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(java.lang.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 java.lang.String getMinLevel()
        Deprecated. 
        Returns the minimum supported level.
        Returns:
        The minimum supported level, or null if all previous levels are supported.
      • getMaxLevel

        public java.lang.String getMaxLevel()
        Deprecated. 
        Returns the maximum supported level.
        Returns:
        The maximum supported level, or null if all following levels are supported.
      • vrmToLevel

        public static java.lang.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 java.lang.String toString()
        Deprecated. 
        Returns a String representation of the level.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The String representation of the level.