Class RuntimeCompatibility


  • public final class RuntimeCompatibility
    extends Object
    1C:Enterprise platform runtime compatibility support class. Allows to compute Extension Points runtime compatibility expressions.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Constructor Detail

      • RuntimeCompatibility

        public RuntimeCompatibility()
    • Method Detail

      • computeVersions

        public static Collection<Version> computeVersions​(org.eclipse.core.runtime.IConfigurationElement element)
                                                   throws org.eclipse.core.runtime.CoreException
        Computes all compatible 1C:Enterprise platform runtime versions for the provided runtime configuration element.
        Parameters:
        element - the runtime configuration element, cannot be null
        Returns:
        a collection of all compatible 1C:Enterprise platform runtime versions, never null
        Throws:
        org.eclipse.core.runtime.CoreException - if the XML expression tree is malformed
        See Also:
        Version
      • computeVersions

        public static Collection<Version> computeVersions​(org.eclipse.core.runtime.IConfigurationElement element,
                                                          boolean allowUnknownRuntimes)
                                                   throws org.eclipse.core.runtime.CoreException
        Computes all compatible 1C:Enterprise platform runtime versions for the provided runtime configuration element.
        Parameters:
        element - the runtime configuration element, cannot be null
        allowUnknownRuntimes - allow configuration element to specify unknown 1C:Enterprise platform runtimes; if false then exception will be thrown in unknown runtimes occurrence
        Returns:
        a collection of all compatible 1C:Enterprise platform runtime versions, never null
        Throws:
        org.eclipse.core.runtime.CoreException - if the XML expression tree is malformed
        See Also:
        Version
      • computeRuntimes

        public static Collection<IRuntime> computeRuntimes​(org.eclipse.core.runtime.IConfigurationElement element)
                                                    throws org.eclipse.core.runtime.CoreException
        Computes all compatible 1C:Enterprise platform runtimes for the provided runtime configuration element.
        Parameters:
        element - the runtime configuration element, cannot be null
        Returns:
        a collection of all compatible 1C:Enterprise platform runtimes, never null
        Throws:
        org.eclipse.core.runtime.CoreException - if the XML expression tree is malformed
        See Also:
        IRuntime
      • computeRuntimes

        public static Collection<IRuntime> computeRuntimes​(org.eclipse.core.runtime.IConfigurationElement element,
                                                           boolean allowUnknownRuntimes)
                                                    throws org.eclipse.core.runtime.CoreException
        Computes all compatible 1C:Enterprise platform runtimes for the provided runtime configuration element.
        Parameters:
        element - the runtime configuration element, cannot be null
        allowUnknownRuntimes - allow configuration element to specify unknown 1C:Enterprise platform runtimes; if false then exception will be thrown in unknown runtimes occurrence
        Returns:
        a collection of all compatible 1C:Enterprise platform runtimes, never null
        Throws:
        org.eclipse.core.runtime.CoreException - if the XML expression tree is malformed
        See Also:
        IRuntime