Package com.datadog.api.client.v2.model
Class AnalysisViolation
java.lang.Object
com.datadog.api.client.v2.model.AnalysisViolation
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AnalysisViolation
extends Object
A rule violation found in the analyzed source code.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisViolation(String category, AnalysisPosition end, List<AnalysisFix> fixes, String message, String severity, AnalysisPosition start) -
Method Summary
Modifier and TypeMethodDescriptionaddFixesItem(AnalysisFix fixesItem) end(AnalysisPosition end) booleanReturn true if this AnalysisViolation object is equal to o.fixes(List<AnalysisFix> fixes) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The category of the violation.getEnd()A position in source code, identified by line and column numbers.getFixes()The list of suggested fixes for this violation.A human-readable description of the violation.The severity level of the violation.getStart()A position in source code, identified by line and column numbers.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCategory(String category) voidsetEnd(AnalysisPosition end) voidsetFixes(List<AnalysisFix> fixes) voidsetMessage(String message) voidsetSeverity(String severity) voidsetStart(AnalysisPosition start) start(AnalysisPosition start) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CATEGORY
- See Also:
-
JSON_PROPERTY_END
- See Also:
-
JSON_PROPERTY_FIXES
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_SEVERITY
- See Also:
-
JSON_PROPERTY_START
- See Also:
-
-
Constructor Details
-
AnalysisViolation
public AnalysisViolation() -
AnalysisViolation
public AnalysisViolation(String category, AnalysisPosition end, List<AnalysisFix> fixes, String message, String severity, AnalysisPosition start)
-
-
Method Details
-
category
-
getCategory
The category of the violation.- Returns:
- category
-
setCategory
-
end
-
getEnd
A position in source code, identified by line and column numbers.- Returns:
- end
-
setEnd
-
fixes
-
addFixesItem
-
getFixes
The list of suggested fixes for this violation.- Returns:
- fixes
-
setFixes
-
message
-
getMessage
A human-readable description of the violation.- Returns:
- message
-
setMessage
-
severity
-
getSeverity
The severity level of the violation.- Returns:
- severity
-
setSeverity
-
start
-
getStart
A position in source code, identified by line and column numbers.- Returns:
- start
-
setStart
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- AnalysisViolation
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this AnalysisViolation object is equal to o. -
hashCode
public int hashCode() -
toString
-