congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTextField (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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