Tabnine Logo
EncodingCharacters.getFieldSeparator
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: ca.uhn.hapi/hapi-base

  parseThisSegment = maskIt.next().startsWith(segmentIdAsDatumPath);
if(parseThisSegment && (segment.charAt(3) == encodingChars.getFieldSeparator())) {
  ER7SegmentHandler handler = new ER7SegmentHandler();
  handler.m_props = props;
origin: ca.uhn.hapi/hapi-osgi-base

  parseThisSegment = maskIt.next().startsWith(segmentIdAsDatumPath);
if(parseThisSegment && (segment.charAt(3) == encodingChars.getFieldSeparator())) {
  ER7SegmentHandler handler = new ER7SegmentHandler();
  handler.m_props = props;
origin: ca.uhn.hapi/hapi-base

public char delim(int level)
{
  if(level == 0)
    return m_encodingChars.getFieldSeparator();
  else if(level == 1)
    return m_encodingChars.getRepetitionSeparator();
  else if(level == 2)
    return m_encodingChars.getComponentSeparator();
  else if(level == 3)
    return m_encodingChars.getSubcomponentSeparator();
  else if(level == 4)
    return m_encodingChars.getTruncationCharacter();
  else
    throw new java.lang.Error();
}
origin: ca.uhn.hapi/hapi-base

List<Integer> nodeKey = new ArrayList<Integer>();
nodeKey.add(new Integer(0));
handler.putDatum(nodeKey, String.valueOf(encodingChars.getFieldSeparator()));
encodingChars.setComponentSeparator(segment.charAt(4));
encodingChars.setRepetitionSeparator(segment.charAt(5));
handler.putDatum(nodeKey, encodingChars.toString());
if(segment.charAt(8) == encodingChars.getFieldSeparator()) {	
  ret = true; 
origin: ca.uhn.hapi/hapi-osgi-base

public char delim(int level)
{
  if(level == 0)
    return m_encodingChars.getFieldSeparator();
  else if(level == 1)
    return m_encodingChars.getRepetitionSeparator();
  else if(level == 2)
    return m_encodingChars.getComponentSeparator();
  else if(level == 3)
    return m_encodingChars.getSubcomponentSeparator();
  else if(level == 4)
    return m_encodingChars.getTruncationCharacter();
  else
    throw new java.lang.Error();
}
origin: ca.uhn.hapi/hapi-osgi-base

try {
  String[] fields = split(message.substring(0, Math.max(message.indexOf(segDelim), message.length())),
    String.valueOf(ec.getFieldSeparator()));
  wholeFieldNine = fields[8];
origin: ca.uhn.hapi/hapi-osgi-base

String wholeFieldNine;
try {
  String[] fields = split(message.substring(0, Math.max(message.indexOf(SEGMENT_DELIMITER), message.length())), String.valueOf(ec.getFieldSeparator()));
  wholeFieldNine = fields[8];
origin: ca.uhn.hapi/hapi-base

public static String encode(Segment source, EncodingCharacters encodingChars) {
  StringBuffer result = new StringBuffer();
  result.append(source.getName());
  result.append(encodingChars.getFieldSeparator());
      log.error("Error while encoding segment: ", e);
    result.append(encodingChars.getFieldSeparator());
  return stripExtraDelimiters(result.toString(), encodingChars.getFieldSeparator());
origin: ca.uhn.hapi/hapi-osgi-base

public static String encode(Segment source, EncodingCharacters encodingChars) {
  StringBuffer result = new StringBuffer();
  result.append(source.getName());
  result.append(encodingChars.getFieldSeparator());
      log.error("Error while encoding segment: ", e);
    result.append(encodingChars.getFieldSeparator());
  return stripExtraDelimiters(result.toString(), encodingChars.getFieldSeparator());
origin: ca.uhn.hapi/hapi-base

try {
  String[] fields = split(message.substring(0, Math.max(message.indexOf(segDelim), message.length())),
    String.valueOf(ec.getFieldSeparator()));
  wholeFieldNine = fields[8];
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-base

String wholeFieldNine;
try {
  String[] fields = split(message.substring(0, Math.max(message.indexOf(SEGMENT_DELIMITER), message.length())), String.valueOf(ec.getFieldSeparator()));
  wholeFieldNine = fields[8];
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

/** @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#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-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

  fieldOffset = 1;
  Terser.set(destination, 1, 0, 1, 1, String.valueOf(encodingChars.getFieldSeparator()));
String[] fields = split(segment, String.valueOf(encodingChars.getFieldSeparator()));
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());
}

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());
}

ca.uhn.hl7v2.parserEncodingCharactersgetFieldSeparator

Javadoc

Returns the field separator.

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.
  • getEscapeCharacter
    Returns the escape character.
  • 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
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 12 Jupyter Notebook extensions
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