Class TrainingPlatform


  • public final class TrainingPlatform
    extends Object
    Utility methods and constants to work with training 1C:Enterprise platforms.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Field Detail

      • SUFFIX

        public static final String SUFFIX
        Training 1C:Enterprise platform pathes suffix. Value is "t".
        See Also:
        Constant Field Values
    • Method Detail

      • toTrainingPath

        public static Path toTrainingPath​(Path original,
                                          int trainingSegmentIndex)
        Converts the provided 1C:Enterprise path to 1C:Enterprise training platform path. The provided indexed path segment will be converted with platform pathes suffix.
        Parameters:
        original - the original 1C:Enterprise path, cannot be null
        trainingSegmentIndex - the index of training segment to convert with training 1C:Enterprise platform suffix, must be less than original 1C:Enterprise path segment count
        Returns:
        the 1C:Enterprise training platform path, never null
      • isTraining

        public static boolean isTraining​(File file)
        Returns whether the provided regular executable file belongs to 1C:Enterprise training platform.
        Parameters:
        file - the regular executable file to check, cannot be null
        Returns:
        whether the provided regular executable file belongs to 1C:Enterprise training platform