congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Severity.getLevel
Code IndexAdd Tabnine to your IDE (free)

How to use
getLevel
method
in
com.buschmais.jqassistant.core.analysis.api.rule.Severity

Best Java code snippets using com.buschmais.jqassistant.core.analysis.api.rule.Severity.getLevel (Showing top 3 results out of 315)

origin: com.buschmais.jqassistant.core/report

/**
 * Writes the severity of the rule.
 *
 * @param severity
 *            The severity the rule has been executed with
 * @throws XMLStreamException
 *             If writing fails.
 */
private void writeSeverity(Severity severity) throws XMLStreamException {
  xmlStreamWriter.writeStartElement("severity");
  xmlStreamWriter.writeAttribute("level", severity.getLevel().toString());
  xmlStreamWriter.writeCharacters(severity.getValue());
  xmlStreamWriter.writeEndElement();
}
origin: com.buschmais.jqassistant.core/report

List<String> resultRows = getResultRows(result, logResult);
boolean warn = warnOnSeverity != null && result.getSeverity().getLevel() <= warnOnSeverity.getLevel();
boolean fail = failOnSeverity != null && result.getSeverity().getLevel() <= failOnSeverity.getLevel();
LoggingStrategy loggingStrategy;
if (fail) {
origin: com.buschmais.jqassistant.plugin/common

if (severity.getLevel() <= failureSeverity.getLevel()) {
  Failure failure = new Failure();
  failure.setMessage(rule.getDescription());
  testcase.getFailure().add(failure);
  failures++;
} else if (severity.getLevel() <= errorSeverity.getLevel()) {
  Error error = new Error();
  error.setMessage(rule.getDescription());
com.buschmais.jqassistant.core.analysis.api.ruleSeveritygetLevel

Javadoc

Returns violation level

Popular methods of Severity

  • fromValue
    Retrieves severity based on string representation.
  • getInfo
    Return a string representing of the effective severity of a rule.
  • getValue
    Returns string representation of severity
  • name
  • equals
  • valueOf
  • values

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • Path (java.nio.file)
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JPanel (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Option (scala)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now