Class Runtime

java.lang.Object
com._1c.g5.v8.dt.internal.platform.Runtime
All Implemented Interfaces:
IRuntime

public class Runtime extends Object implements IRuntime
Implementation of IRuntime.
  • Constructor Details

    • Runtime

      public Runtime(String id, String version, String name)
      Creates an instance of Runtime.
      Parameters:
      id - the 1C:Enterprise runtime identifier, cannot be null
      version - the 1C:Enterprise runtime version, cannot be null
      name - the 1C:Enterprise runtime name, cannot be null
      Throws:
      IllegalArgumentException - If version is improperly formatted.
  • Method Details

    • getId

      public String getId()
      Description copied from interface: IRuntime
      Returns this 1C:Enterprise runtime identifier. This corresponds to the id attribute specified in the extension definition.
      Specified by:
      getId in interface IRuntime
      Returns:
      the 1C:Enterprise platform runtime identifier, never null
    • getVersion

      public Version getVersion()
      Description copied from interface: IRuntime
      Returns this 1C:Enterprise runtime version. This corresponds to the version attribute specified in the extension definition, parsed into Version.
      Specified by:
      getVersion in interface IRuntime
      Returns:
      the 1C:Enterprise platform runtime version, never null
    • getName

      public String getName()
      Description copied from interface: IRuntime
      Returns this 1C:Enterprise runtime name (text presentation). This corresponds to the name attribute specified in the extension definition.
      Specified by:
      getName in interface IRuntime
      Returns:
      the 1C:Enterprise platform runtime name, never null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object