Tabnine Logo
AbstractSegmentContainer
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractSegmentContainer
in
ca.uhn.hl7v2.conf.spec.message

Best Java code snippets using ca.uhn.hl7v2.conf.spec.message.AbstractSegmentContainer (Showing top 2 results out of 315)

origin: ca.uhn.hapi/hapi-base

/**
 * Parses children (i.e. segment groups, segments) of a segment group or message profile
 */
private void parseChildren(AbstractSegmentContainer parent, Element elem)
    throws ProfileException {
  int childIndex = 1;
  NodeList children = elem.getChildNodes();
  for (int i = 0; i < children.getLength(); i++) {
    Node n = children.item(i);
    if (n.getNodeType() == Node.ELEMENT_NODE) {
      Element child = (Element) n;
      if (child.getNodeName().equalsIgnoreCase("SegGroup")) {
        SegGroup group = parseSegmentGroupProfile(child);
        parent.setChild(childIndex++, group);
      } else if (child.getNodeName().equalsIgnoreCase("Segment")) {
        Seg segment = parseSegmentProfile(child);
        parent.setChild(childIndex++, segment);
      }
    }
  }
}
origin: ca.uhn.hapi/hapi-osgi-base

/**
 * Parses children (i.e. segment groups, segments) of a segment group or message profile
 */
private void parseChildren(AbstractSegmentContainer parent, Element elem)
    throws ProfileException {
  int childIndex = 1;
  NodeList children = elem.getChildNodes();
  for (int i = 0; i < children.getLength(); i++) {
    Node n = children.item(i);
    if (n.getNodeType() == Node.ELEMENT_NODE) {
      Element child = (Element) n;
      if (child.getNodeName().equalsIgnoreCase("SegGroup")) {
        SegGroup group = parseSegmentGroupProfile(child);
        parent.setChild(childIndex++, group);
      } else if (child.getNodeName().equalsIgnoreCase("Segment")) {
        Seg segment = parseSegmentProfile(child);
        parent.setChild(childIndex++, segment);
      }
    }
  }
}
ca.uhn.hl7v2.conf.spec.messageAbstractSegmentContainer

Javadoc

An abstraction of SegGroup and MessageProfile (both are containers for segment specs).

Most used methods

  • setChild
    Indexed setter for property structure. Lengthens child list if necessary.

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • String (java.lang)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • 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