Class DebugTargetTypeUtil


  • public final class DebugTargetTypeUtil
    extends Object
    Support methods to work with DebugTargetType.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • isServer

        public static boolean isServer​(DebugTargetType type)
        Returns whether the provided 1C:Enterprise debug target type is a server type.
        Parameters:
        type - the 1C:Enterprise debug target type, cannot be null
        Returns:
        whether the provided 1C:Enterprise debug target type is a server type
      • isServerEmulation

        public static boolean isServerEmulation​(DebugTargetType type)
        Returns whether the provided 1C:Enterprise debug target type is a server emulation (file-based variant) type.
        Parameters:
        type - the 1C:Enterprise debug target type, cannot be null
        Returns:
        whether the provided 1C:Enterprise debug target type is a server emulation type
      • isClient

        public static boolean isClient​(DebugTargetType type)
        Returns whether the provided 1C:Enterprise debug target type is a client type.
        Parameters:
        type - the 1C:Enterprise debug target type, cannot be null
        Returns:
        whether the provided 1C:Enterprise debug target type is a client type
      • getPresentation

        public static String getPresentation​(DebugTargetType type)
        Returns text presentation of the provided 1C:Enterprise debug target type. Method is intended to be used for UI presentation of debug targets.
        Parameters:
        type - the 1C:Enterprise debug target type, cannot be null
        Returns:
        the text presentation of the given debug target type, never null
      • isDebugTargetTypeSupported

        public static boolean isDebugTargetTypeSupported​(DebugTargetType type,
                                                         IV8Project v8Project)
        Returns true if DebugTargetType is supported for IV8Project
        Parameters:
        type - the debug target type, cannot be null
        v8Project - the project reference, cannot be null
        Returns:
        true if the debug target is supported by V8 project