Tabnine Logo
Terser$PathSpec
Code IndexAdd Tabnine to your IDE (free)

How to use
Terser$PathSpec
in
ca.uhn.hl7v2.util

Best Java code snippets using ca.uhn.hl7v2.util.Terser$PathSpec (Showing top 2 results out of 315)

origin: ca.uhn.hapi/hapi-base

/** Gets path information from a path spec. */
private PathSpec parsePathSpec(String spec) throws HL7Exception {
  PathSpec ps = new PathSpec();
  if (spec.startsWith(".")) {
    ps.find = true;
    spec = spec.substring(1);
  } else {
    ps.find = false;
  }
  if (spec.length() == 0) {
    throw new HL7Exception("Invalid path (some path element is either empty or contains only a dot)");
  }
  StringTokenizer tok = new StringTokenizer(spec, "()", false);
  ps.pattern = tok.nextToken();
  if (tok.hasMoreTokens()) {
    String repString = tok.nextToken();
    try {
      ps.rep = Integer.parseInt(repString);
    } catch (NumberFormatException e) {
      throw new HL7Exception(repString + " is not a valid rep #");
    }
  } else {
    ps.rep = 0;
  }
  return ps;
}
origin: ca.uhn.hapi/hapi-osgi-base

/** Gets path information from a path spec. */
private PathSpec parsePathSpec(String spec) throws HL7Exception {
  PathSpec ps = new PathSpec();
  if (spec.startsWith(".")) {
    ps.find = true;
    spec = spec.substring(1);
  } else {
    ps.find = false;
  }
  if (spec.length() == 0) {
    throw new HL7Exception("Invalid path (some path element is either empty or contains only a dot)");
  }
  StringTokenizer tok = new StringTokenizer(spec, "()", false);
  ps.pattern = tok.nextToken();
  if (tok.hasMoreTokens()) {
    String repString = tok.nextToken();
    try {
      ps.rep = Integer.parseInt(repString);
    } catch (NumberFormatException e) {
      throw new HL7Exception(repString + " is not a valid rep #");
    }
  } else {
    ps.rep = 0;
  }
  return ps;
}
ca.uhn.hl7v2.utilTerser$PathSpec

Javadoc

Struct for information about a step in a segment path.

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • From CI to AI: The AI layer in your organization
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