congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AbstractTextPrimitive.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
ca.uhn.hl7v2.model.primitive.AbstractTextPrimitive

Best Java code snippets using ca.uhn.hl7v2.model.primitive.AbstractTextPrimitive.getValue (Showing top 4 results out of 315)

origin: ca.uhn.hapi/hapi-base

/**
 * Returns the value of the datatype as returned by {@link #getValue()} but
 * returns an empty string ("") if the value is <code>null</code>. This
 * method is mostly provided as a convenience in code which maps from one
 * format to another, since it avoids the need for some null checks.
 */
public String getValueOrEmpty() {
  String retVal = getValue();
  if (retVal == null) {
    retVal = "";
  }
  return retVal;
}
 
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Returns the value of the datatype as returned by {@link #getValue()} but
 * returns an empty string ("") if the value is <code>null</code>. This
 * method is mostly provided as a convenience in code which maps from one
 * format to another, since it avoids the need for some null checks.
 */
public String getValueOrEmpty() {
  String retVal = getValue();
  if (retVal == null) {
    retVal = "";
  }
  return retVal;
}
 
origin: ca.uhn.hapi/hapi-base

return FormattedTextEncoder.getInstanceHtml().encode(getValue());
origin: ca.uhn.hapi/hapi-osgi-base

return FormattedTextEncoder.getInstanceHtml().encode(getValue());
ca.uhn.hl7v2.model.primitiveAbstractTextPrimitivegetValue

Javadoc

Returns the value of this type with HL7 defined formatting codes replaced by their HTML equivalent.

For example, if this type contained the string:

 
ABC \.ce\MIDDLE\.br\ 

This would be returned as:
 
ABC <center>MIDDLE<center><br> 

The following codes are handled (note that contrary to the HL7 specification, codes are interpreted in a case-insensitive manner):

  • \.br\ (converted to <br>)
  • \.ce\ (converted to <center>)
  • \.sk\ (converted to &nbsp;)
  • \.sp\ (converted to <br> and then multiple &nbsp;)
  • \.sp ###\ (converted to multiple <br> and then multiple &nbsp;)
  • \.fi\ (cancels \.nf\)
  • \.nf\ (converted to <nobr> ... </nobr> around each line)
  • \.in ###\ (converted to <div style="margin-left: ###em;"> ... </div> around each line)
  • \.ti ###\ (treated the same as \.in ###\ but only affects the current line, and the numeric value is added to the value provided by \.in ###\. See section 2.7 of the HL7 specification for more details.)
  • \H\ (converted to <b>)
  • \N\ (converted to </b>)
  • Ampersands (&) are converted to their HTML equivalent (&amp;)
  • Chars over ASCII 160 are HTML encoded (e.g. &#199;)

Note that the returned value from this method is an HTML snippet, not a complete HTML document.

Popular methods of AbstractTextPrimitive

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • runOnUiThread (Activity)
    • getApplicationContext (Context)
    • getExternalFilesDir (Context)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • Collection (java.util)
      Collection is the root of the collection hierarchy. It defines operations on data collections and t
    • Annotation (javassist.bytecode.annotation)
      The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
    • ServletException (javax.servlet)
      Defines a general exception a servlet can throw when it encounters difficulty.
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Top 17 Free Sublime Text 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