congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Severity.getValue
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.buschmais.jqassistant.core.analysis.api.rule.Severity.getValue (Showing top 2 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/rule

  /**
   * Converts {@link Severity} to {@link SeverityEnumType}
   *
   * @param severity
   *            {@link Severity}, can be <code>null</code>
   * @param defaultSeverity
   *            default severity level, can be <code>null</code>
   * @return {@link SeverityEnumType}
   */
  private SeverityEnumType getSeverity(Severity severity, Severity defaultSeverity) {
    if (severity == null) {
      severity = defaultSeverity;
    }
    return defaultSeverity != null ? SeverityEnumType.fromValue(severity.getValue()) : null;
  }
}
com.buschmais.jqassistant.core.analysis.api.ruleSeveritygetValue

Javadoc

Returns string representation of severity

Popular methods of Severity

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

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • BoxLayout (javax.swing)
  • 21 Best IntelliJ Plugins
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