Class DebugTargetTypeUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.debug.model.base.data.DebugTargetTypeUtil
-
public final class DebugTargetTypeUtil extends Object
Support methods to work withDebugTargetType
.- 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 String
getPresentation(DebugTargetType type)
Returns text presentation of the provided 1C:Enterprise debug target type.static boolean
isClient(DebugTargetType type)
Returns whether the provided 1C:Enterprise debug target type is a client type.static boolean
isDebugTargetTypeSupported(DebugTargetType type, IV8Project v8Project)
Returnstrue
ifDebugTargetType
is supported forIV8Project
static boolean
isServer(DebugTargetType type)
Returns whether the provided 1C:Enterprise debug target type is a server type.static boolean
isServerEmulation(DebugTargetType type)
Returns whether the provided 1C:Enterprise debug target type is a server emulation (file-based variant) type.
-
-
-
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 benull
- 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 benull
- 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 benull
- 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 benull
- Returns:
- the text presentation of the given debug target type, never
null
-
isDebugTargetTypeSupported
public static boolean isDebugTargetTypeSupported(DebugTargetType type, IV8Project v8Project)
Returnstrue
ifDebugTargetType
is supported forIV8Project
- Parameters:
type
- the debug target type, cannot benull
v8Project
- the project reference, cannot benull
- Returns:
true
if the debug target is supported by V8 project
-
-