public class ToolResultSeverity extends java.lang.Object implements IToolResultSeverity
IToolResultSeverity. Allows defining a
tool result severity based on EToolResultSeverity.ToolResultSeverity(ToolDescriptor,
EToolResultSeverity)| Modifier and Type | Field and Description |
|---|---|
static IToolResultSeverity |
OK
OK severity with return code
0. |
| Constructor and Description |
|---|
ToolResultSeverity(int pReturnCode)
Creates a tool result severity from a return code.
|
ToolResultSeverity(ToolDescriptor pTool,
EToolResultSeverity pSeverity)
Creates a tool result severity from an
EToolResultSeverity enum
value. |
| Modifier and Type | Method and Description |
|---|---|
int |
getReturnCode()
Gets the return code, which reflects the severity in combination with the
maximum return code of the AWM application's
ApplicationOptions. |
public static final IToolResultSeverity OK
0.public ToolResultSeverity(int pReturnCode)
pReturnCode - the return codepublic ToolResultSeverity(ToolDescriptor pTool, EToolResultSeverity pSeverity)
EToolResultSeverity enum
value. Automatically sets a return code based on the current modelpTool - the executed toolpSeverity - the severitypublic int getReturnCode()
IToolResultSeverityApplicationOptions.
Only tools which utilize return codes in a flexible way (e.g. command
based tools) should return custom return codes. All other tools should
consider using
ToolResultSeverity(com.microfocus.awm.meta.interfaces.ToolDescriptor, com.microfocus.awm.model.EToolResultSeverity)
to return status based return codes.
getReturnCode in interface IToolResultSeverityApplicationOptions.getMaxRC(),
ToolResultSeverityCopyright © 2015 Micro Focus GmbH. All rights reserved.