Enum Class SCVersion

java.lang.Object
java.lang.Enum<SCVersion>
org.serviceconnector.SCVersion
All Implemented Interfaces:
Serializable, Comparable<SCVersion>, Constable

public enum SCVersion extends Enum<SCVersion>
Provides actual SC version and method to check compatibility. The SC versioning schema follows this philosophy
        A99.99-999 (Ex. V2.4-265)
| | | |
| | | +-- revision number
| | +-- version number
| +-- release number
+-- version type
Version type designates the target and scope and can be:
  • X � experimental, usually not distributed
  • T � field test, deployed to selected customers
  • V � final version, publicly available

Release number designates the major release (design) of the product. It starts at 1 and is incremented by 1. New release is usually a complete rewrite. V(i+1).xx-zzz is not compatible with V(i).xx-zzz

Version number designates the interface signature. It starts at 0 and is incremented by 1. New versions are compatible, but may contain additional features. V2.(x+1)-zzz is compatible with V2.(x)-zzz but not the other way round. It is recommended to recompile and review of the application code.

Revision number designates the actual development stage. It starts at 1 and is incremented by 1. New versions are fully compatible. V2.4-(z+1) is compatible with V2.4-z but not the other way round.

See the SC_0_SCMP_E.PDF for more details.

Author:
JTraber
  • Enum Constant Details

    • CURRENT

      public static final SCVersion CURRENT
      The current version.
    • TEST

      public static final SCVersion TEST
      The version to make tests - DO NOT CHANGE !
  • Method Details

    • values

      public static SCVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SCVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isSupported

      public void isSupported(String scVersion) throws SCMPValidatorException
      Checks if is supported.
      Parameters:
      scVersion - the text in format 999.999-999 e.g. 1.5-003
      Throws:
      SCMPValidatorException - the SCMP validator exception
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SCVersion>