|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectowltools.gaf.rules.AnnotationRulesEngine.AnnotationRulesEngineResult
public static class AnnotationRulesEngine.AnnotationRulesEngineResult
Results for a run of the AnnotationRulesEngine
.
Method Summary | |
---|---|
int |
countViolations(AnnotationRuleViolation.ViolationType type)
|
int |
getErrorCount()
|
int |
getRecommendationCount()
|
List<String> |
getRules()
|
List<AnnotationRuleViolation.ViolationType> |
getTypes()
|
Map<String,List<AnnotationRuleViolation>> |
getViolations(AnnotationRuleViolation.ViolationType type)
Retrieve all violations for a given AnnotationRuleViolation.ViolationType . |
int |
getWarningCount()
|
boolean |
hasErrors()
|
boolean |
hasRecommendations()
|
boolean |
hasType(AnnotationRuleViolation.ViolationType type)
|
boolean |
hasWarnings()
|
boolean |
isEmpty()
|
static void |
renderViolations(AnnotationRulesEngine.AnnotationRulesEngineResult result,
PrintWriter writer)
A simple tab delimited print-out of the result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasErrors()
AnnotationRuleViolation.ViolationType.Error
.public boolean hasWarnings()
AnnotationRuleViolation.ViolationType.Warning
.public boolean hasRecommendations()
AnnotationRuleViolation.ViolationType.Recommendation
.public boolean hasType(AnnotationRuleViolation.ViolationType type)
type
-
public List<AnnotationRuleViolation.ViolationType> getTypes()
AnnotationRuleViolation.ViolationType
in this result.public int getErrorCount()
public int getWarningCount()
public int getRecommendationCount()
public int countViolations(AnnotationRuleViolation.ViolationType type)
type
-
public boolean isEmpty()
AnnotationRuleViolation
in this result.public List<String> getRules()
public Map<String,List<AnnotationRuleViolation>> getViolations(AnnotationRuleViolation.ViolationType type)
AnnotationRuleViolation.ViolationType
.
type
-
public static void renderViolations(AnnotationRulesEngine.AnnotationRulesEngineResult result, PrintWriter writer)
result
- writer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |