Tabnine Logo
ResultSeverityEnum.name
Code IndexAdd Tabnine to your IDE (free)

How to use
name
method
in
ca.uhn.fhir.validation.ResultSeverityEnum

Best Java code snippets using ca.uhn.fhir.validation.ResultSeverityEnum.name (Showing top 4 results out of 315)

origin: jamesagnew/hapi-fhir

private String toDescription() {
  StringBuilder b = new StringBuilder(100);
  if (myMessages.size() > 0) {
    if (myMessages.get(0).getSeverity() != null) {
      b.append(myMessages.get(0).getSeverity().name());
      b.append(" - ");
    }
    b.append(myMessages.get(0).getMessage());
    b.append(" - ");
    b.append(myMessages.get(0).getLocationString());
  } else {
    b.append("No issues");
  }
  return b.toString();
}
origin: jamesagnew/hapi-fhir

@Override
public String lookup(String theKey) {
  if ("line".equals(theKey)) {
    return toString(myMessage.getLocationLine());
  }
  if ("col".equals(theKey)) {
    return toString(myMessage.getLocationCol());
  }
  if ("message".equals(theKey)) {
    return toString(myMessage.getMessage());
  }
  if ("location".equals(theKey)) {
    return toString(myMessage.getLocationString());
  }
  if ("severity".equals(theKey)) {
    return myMessage.getSeverity() != null ? myMessage.getSeverity().name() : null;
  }
  return "";
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

private String toDescription() {
  StringBuilder b = new StringBuilder(100);
  if (myMessages.size() > 0) {
    if (myMessages.get(0).getSeverity() != null) {
      b.append(myMessages.get(0).getSeverity().name());
      b.append(" - ");
    }
    b.append(myMessages.get(0).getMessage());
    b.append(" - ");
    b.append(myMessages.get(0).getLocationString());
  } else {
    b.append("No issues");
  }
  return b.toString();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-server

@Override
public String lookup(String theKey) {
  if ("line".equals(theKey)) {
    return toString(myMessage.getLocationLine());
  }
  if ("col".equals(theKey)) {
    return toString(myMessage.getLocationCol());
  }
  if ("message".equals(theKey)) {
    return toString(myMessage.getMessage());
  }
  if ("location".equals(theKey)) {
    return toString(myMessage.getLocationString());
  }
  if ("severity".equals(theKey)) {
    return myMessage.getSeverity() != null ? myMessage.getSeverity().name() : null;
  }
  return "";
}
ca.uhn.fhir.validationResultSeverityEnumname

Popular methods of ResultSeverityEnum

  • fromCode
  • ordinal
  • values
  • getCode
  • toString

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • setContentView (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Path (java.nio.file)
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Option (scala)
  • Top Sublime Text 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