public class ModelIssue
extends java.lang.Object
Constructor and Description |
---|
ModelIssue(UmlObject subject,
org.tanjakostic.jcleancim.validation.Rule rule)
Creates an issue without the evidence part and with toShortString() subject description.
|
ModelIssue(UmlObject subject,
org.tanjakostic.jcleancim.validation.Rule rule,
java.lang.String subjectDescription)
Creates an issue without the evidence part.
|
ModelIssue(UmlObject subject,
org.tanjakostic.jcleancim.validation.Rule rule,
java.lang.String subjectDescription,
java.lang.String evidence,
java.lang.String groupTag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asCSV()
Returns the string representation suitable for comma-separated format.
|
static java.lang.String |
columnsAsCSV()
Returns the string representation of columns suitable for comma-separated format.
|
java.lang.String |
getCategory() |
java.lang.String |
getDiagnosisItem()
Returns the line of text with diagnosis as appropriate for logging; it will likely be deduced
from
getGroupTag() , getEvidence() and getSubjectDescription() . |
java.lang.String |
getEvidence()
Returns the "proof of guilt"; may be null if obvious.
|
java.lang.String |
getGroupTag()
Returns potentially null/empty tag indicating relation with other issues of the same type.
|
java.lang.String |
getHowToFix()
Returns the suggestion on how to fix the problem.
|
java.lang.String |
getHypothesis()
Returns what the rule is enforcing (and what was violated).
|
java.lang.String |
getRuleName()
Returns the name of the rule that was violated, which resulted in this issue.
|
java.lang.String |
getSeverity() |
java.lang.String |
getSubjectDescription()
Returns the description of subject in this issue, sufficient to find it among all the objects
in the model.
|
java.lang.String |
getSubjectKind() |
java.lang.String |
getSubjectOwner() |
java.lang.String |
getSubjectQName() |
java.lang.String |
toString() |
public ModelIssue(UmlObject subject, org.tanjakostic.jcleancim.validation.Rule rule)
subject
- non-null subject of this issue.rule
- non-null rule whole violation created this issue.public ModelIssue(UmlObject subject, org.tanjakostic.jcleancim.validation.Rule rule, java.lang.String subjectDescription)
subject
- non-null subject of this issue.rule
- non-null rule whole violation created this issue.subjectDescription
- subject description; if null, using toShortString()public ModelIssue(UmlObject subject, org.tanjakostic.jcleancim.validation.Rule rule, java.lang.String subjectDescription, java.lang.String evidence, java.lang.String groupTag)
subject
- non-null subject of this issue.rule
- non-null rule whose violation created this issue.subjectDescription
- subject description; if null, using toShortString().evidence
- (potentially null) evidence of the issue for subject.groupTag
- (potentially null) tag to indicate this issue is related to some other one;
typically used in relation to duplicate names.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getSubjectOwner()
public java.lang.String getSubjectQName()
public java.lang.String getSubjectKind()
public java.lang.String getCategory()
public java.lang.String getSeverity()
public java.lang.String getRuleName()
public java.lang.String getHypothesis()
public java.lang.String getHowToFix()
public java.lang.String getSubjectDescription()
public java.lang.String getEvidence()
public java.lang.String getGroupTag()
public java.lang.String getDiagnosisItem()
getGroupTag()
, getEvidence()
and getSubjectDescription()
.public static java.lang.String columnsAsCSV()
public java.lang.String asCSV()
Copyright 2009-2016 Tatjana (Tanja) Kostic