Class TrainingPlatform
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isTraining(File file)
Returns whether the provided regular executable file belongs to 1C:Enterprise training platform.static Path
toTrainingPath(Path original, int trainingSegmentIndex)
Converts the provided 1C:Enterprise path to 1C:Enterprise training platform path.
-
-
-
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 benull
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 benull
- Returns:
- whether the provided regular executable file belongs to 1C:Enterprise training platform
-
-