Class Validator.Issue
java.lang.Object
neqsim.mcp.runners.Validator.Issue
- Enclosing class:
Validator
Represents a single validation issue.
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Validator.IssueCreates an error-level issue.(package private) com.google.gson.JsonObjecttoJson()Converts this issue to a JsonObject.(package private) static Validator.IssueCreates a warning-level issue.
-
Field Details
-
severity
-
code
-
message
-
remediation
-
-
Constructor Details
-
Issue
-
-
Method Details
-
error
Creates an error-level issue.- Parameters:
code- the issue codemessage- the descriptionremediation- how to fix- Returns:
- the issue
-
warning
Creates a warning-level issue.- Parameters:
code- the issue codemessage- the descriptionremediation- how to fix- Returns:
- the issue
-
toJson
com.google.gson.JsonObject toJson()Converts this issue to a JsonObject.- Returns:
- JSON representation
-