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

How to use
getEscapeCharacter
method
in
ca.uhn.hl7v2.parser.EncodingCharacters

Best Java code snippets using ca.uhn.hl7v2.parser.EncodingCharacters.getEscapeCharacter (Showing top 14 results out of 315)

origin: ca.uhn.hapi/hapi-base

  EncLookup(EncodingCharacters ec) {
    characters[0] = ec.getFieldSeparator();
    characters[1] = ec.getComponentSeparator();
    characters[2] = ec.getSubcomponentSeparator();
    characters[3] = ec.getRepetitionSeparator();
    characters[4] = ec.getEscapeCharacter();
    characters[5] = ec.getTruncationCharacter();
    characters[6] = '\r';
    char[] codes = {'F', 'S', 'T', 'R', 'E', 'L'};
    for (int i = 0; i < codes.length; i++) {
      StringBuilder seq = new StringBuilder();
      seq.append(ec.getEscapeCharacter());
      seq.append(codes[i]);
      seq.append(ec.getEscapeCharacter());
      encodings[i] = seq.toString();
    }
    // Escaping of truncation # is not implemented yet. It may only be escaped if it is the first character that
    // exceeds the conformance length of the component (ch 2.5.5.2). As of now, this information is not
    // available at this place.
    encodings[5] = "#";
    encodings[6] = "\\X000d\\";
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

  EncLookup(EncodingCharacters ec) {
    characters[0] = ec.getFieldSeparator();
    characters[1] = ec.getComponentSeparator();
    characters[2] = ec.getSubcomponentSeparator();
    characters[3] = ec.getRepetitionSeparator();
    characters[4] = ec.getEscapeCharacter();
    characters[5] = ec.getTruncationCharacter();
    characters[6] = '\r';
    char[] codes = {'F', 'S', 'T', 'R', 'E', 'L'};
    for (int i = 0; i < codes.length; i++) {
      StringBuilder seq = new StringBuilder();
      seq.append(ec.getEscapeCharacter());
      seq.append(codes[i]);
      seq.append(ec.getEscapeCharacter());
      encodings[i] = seq.toString();
    }
    // Escaping of truncation # is not implemented yet. It may only be escaped if it is the first character that
    // exceeds the conformance length of the component (ch 2.5.5.2). As of now, this information is not
    // available at this place.
    encodings[5] = "#";
    encodings[6] = "\\X000d\\";
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

char escapeChar = encChars.getEscapeCharacter();
boolean foundEscapeChar = false;
for (int i = 0; i < text.length(); i++) {
origin: ca.uhn.hapi/hapi-base

String attr = elem.getAttribute(ESCAPE_ATTRNAME).trim();
if (attr.length() > 0) {
  builder.append(ec.getEscapeCharacter()).append(attr)
      .append(ec.getEscapeCharacter());
origin: ca.uhn.hapi/hapi-osgi-base

String attr = elem.getAttribute(ESCAPE_ATTRNAME).trim();
if (attr.length() > 0) {
  builder.append(ec.getEscapeCharacter()).append(attr)
      .append(ec.getEscapeCharacter());
origin: ca.uhn.hapi/hapi-base

try {
  EncodingCharacters ec = EncodingCharacters.getInstance(datatypeObject.getMessage());
  char esc = ec.getEscapeCharacter();
  int pos;
  int oldpos = 0;
origin: ca.uhn.hapi/hapi-base

char escapeChar = encChars.getEscapeCharacter();
boolean foundEscapeChar = false;
for (int i = 0; i < text.length(); i++) {
origin: ca.uhn.hapi/hapi-osgi-base

try {
  EncodingCharacters ec = EncodingCharacters.getInstance(datatypeObject.getMessage());
  char esc = ec.getEscapeCharacter();
  int pos;
  int oldpos = 0;
origin: ca.uhn.hapi/hapi-base

/** @see java.lang.Object#hashCode */
public int hashCode() {
  return 7 * (int) this.getComponentSeparator()
    * (int) this.getEscapeCharacter()
    * (int) this.getFieldSeparator()
    * (int) this.getRepetitionSeparator()
    * (int) this.getSubcomponentSeparator()
    * (int) this.getTruncationCharacter();
}  
origin: ca.uhn.hapi/hapi-osgi-base

/** @see java.lang.Object#equals */
public boolean equals(Object o) {
  if (o instanceof EncodingCharacters) {
    EncodingCharacters other = (EncodingCharacters) o;
    return (this.getFieldSeparator() == other.getFieldSeparator()
      && this.getComponentSeparator() == other.getComponentSeparator()
      && this.getEscapeCharacter() == other.getEscapeCharacter() 
      && this.getRepetitionSeparator() == other.getRepetitionSeparator()
      && this.getSubcomponentSeparator() == other.getSubcomponentSeparator()
      && this.getTruncationCharacter() == other.getTruncationCharacter());
  } else {
    return false;
  }   
}

origin: ca.uhn.hapi/hapi-osgi-base

/** @see java.lang.Object#hashCode */
public int hashCode() {
  return 7 * (int) this.getComponentSeparator()
    * (int) this.getEscapeCharacter()
    * (int) this.getFieldSeparator()
    * (int) this.getRepetitionSeparator()
    * (int) this.getSubcomponentSeparator()
    * (int) this.getTruncationCharacter();
}  
origin: ca.uhn.hapi/hapi-base

/** @see java.lang.Object#equals */
public boolean equals(Object o) {
  if (o instanceof EncodingCharacters) {
    EncodingCharacters other = (EncodingCharacters) o;
    return (this.getFieldSeparator() == other.getFieldSeparator()
      && this.getComponentSeparator() == other.getComponentSeparator()
      && this.getEscapeCharacter() == other.getEscapeCharacter() 
      && this.getRepetitionSeparator() == other.getRepetitionSeparator()
      && this.getSubcomponentSeparator() == other.getSubcomponentSeparator()
      && this.getTruncationCharacter() == other.getTruncationCharacter());
  } else {
    return false;
  }   
}

origin: ca.uhn.hapi/hapi-osgi-base

/** copies contents of "other" */

public EncodingCharacters(EncodingCharacters other) {
  this.fieldSep = other.getFieldSeparator();
  this.encChars = new char[5];
  setComponentSeparator(other.getComponentSeparator());
  setRepetitionSeparator(other.getRepetitionSeparator());
  setEscapeCharacter(other.getEscapeCharacter());
  setSubcomponentSeparator(other.getSubcomponentSeparator());
  setTruncationCharacter(other.getTruncationCharacter());
}

origin: ca.uhn.hapi/hapi-base

/** copies contents of "other" */

public EncodingCharacters(EncodingCharacters other) {
  this.fieldSep = other.getFieldSeparator();
  this.encChars = new char[5];
  setComponentSeparator(other.getComponentSeparator());
  setRepetitionSeparator(other.getRepetitionSeparator());
  setEscapeCharacter(other.getEscapeCharacter());
  setSubcomponentSeparator(other.getSubcomponentSeparator());
  setTruncationCharacter(other.getTruncationCharacter());
}

ca.uhn.hl7v2.parserEncodingCharactersgetEscapeCharacter

Javadoc

Returns the escape character.

Popular methods of EncodingCharacters

  • <init>
    copies contents of "other"
  • defaultInstance
    Returns an instance of encoding characters with the standard ER7 encoding characters defined: |^~\&
  • getComponentSeparator
    Returns the component separator.
  • getFieldSeparator
    Returns the field separator.
  • getInstance
    Returns an instance using the MSH-1 and MSH-2 values of the given message
  • getRepetitionSeparator
    Returns the repetition separator.
  • getSubcomponentSeparator
    Returns the subcomponent separator.
  • getTruncationCharacter
    Returns the truncation character.
  • setComponentSeparator
  • setEscapeCharacter
  • setFieldSeparator
  • setRepetitionSeparator
  • setFieldSeparator,
  • setRepetitionSeparator,
  • setSubcomponentSeparator,
  • setTruncationCharacter,
  • toString

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Permission (java.security)
    Legacy security code; do not use.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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