Class DefaultRuleEvaluation

  • All Implemented Interfaces:
    ch.mobi.mobitor.domain.screen.RuleEvaluation

    public class DefaultRuleEvaluation
    extends java.lang.Object
    implements ch.mobi.mobitor.domain.screen.RuleEvaluation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addViolation​(java.lang.String env, ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation applicationInformation, ch.mobi.mobitor.domain.screen.RuleViolationSeverity severity, java.lang.String message)  
      java.util.Set<java.lang.String> getAffectedEnvironments()  
      java.util.List<RuleMessage> getMessages​(java.lang.String environment)  
      boolean hasErrors()  
      boolean hasViolationsOrWarnings()  
      boolean hasWarnings()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRuleEvaluation

        public DefaultRuleEvaluation()
    • Method Detail

      • addViolation

        public void addViolation​(java.lang.String env,
                                 ch.mobi.mobitor.plugins.api.domain.screen.information.ApplicationInformation applicationInformation,
                                 ch.mobi.mobitor.domain.screen.RuleViolationSeverity severity,
                                 java.lang.String message)
        Specified by:
        addViolation in interface ch.mobi.mobitor.domain.screen.RuleEvaluation
      • hasErrors

        public boolean hasErrors()
        Specified by:
        hasErrors in interface ch.mobi.mobitor.domain.screen.RuleEvaluation
      • hasWarnings

        public boolean hasWarnings()
        Specified by:
        hasWarnings in interface ch.mobi.mobitor.domain.screen.RuleEvaluation
      • hasViolationsOrWarnings

        public boolean hasViolationsOrWarnings()
      • getAffectedEnvironments

        public java.util.Set<java.lang.String> getAffectedEnvironments()
      • getMessages

        public java.util.List<RuleMessage> getMessages​(java.lang.String environment)