Package ca.uhn.hl7v2.conf.spec.message

Examples of ca.uhn.hl7v2.conf.spec.message.Component


    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("Component")) {
          Component comp = (Component) parseComponentProfile(child, false);
          field.setComponent(childIndex++, comp);
        }
      }
    }
View Full Code Here


    if (isSubComponent) {
      log.debug("      Parsing subcomp profile: " + elem.getAttribute("Name"));
      comp = new SubComponent();
    } else {
      log.debug("    Parsing comp profile: " + elem.getAttribute("Name"));
      comp = new Component();

      int childIndex = 1;
      NodeList children = elem.getChildNodes();
      for (int i = 0; i < children.getLength(); i++) {
        Node n = children.item(i);
View Full Code Here

        if (validateChildren) {
          if (profile.getComponents() > 0 && !profile.getUsage().equals("X")) {
              if (Composite.class.isAssignableFrom(type.getClass())) {
                  Composite comp = (Composite) type;
                  for (int i = 1; i <= profile.getComponents(); i++) {
                      Component childProfile = profile.getComponent(i);
                      try {
                          Type child = comp.getComponent(i-1);
                          addToList(testComponent(child, childProfile, profileID), exList);
                      } catch (DataTypeException de) {
                          exList.add(new ProfileNotHL7CompliantException("More components in profile than allowed in message: " + de.getMessage()));
View Full Code Here

        if (theValidateChildren) {
          if (profile.getComponents() > 0 && !profile.getUsage().equals("X")) {
              if (Composite.class.isAssignableFrom(type.getClass())) {
                  Composite comp = (Composite) type;
                  for (int i = 1; i <= profile.getComponents(); i++) {
                      Component childProfile = profile.getComponent(i);
                      try {
                          Type child = comp.getComponent(i-1);
                          addToList(doTestComponent(child, childProfile, profileID, validateChildren), exList);
                      } catch (DataTypeException de) {
                          exList.add(new ProfileNotHL7CompliantException("More components in profile than allowed in message: " + de.getMessage()));
View Full Code Here

    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("Component")) {
          Component comp = (Component) parseComponentProfile(child, false);
          field.setComponent(childIndex++, comp);
        }
      }
    }
View Full Code Here

    if (isSubComponent) {
      log.debug("      Parsing subcomp profile: " + elem.getAttribute("Name"));
      comp = new SubComponent();
    } else {
      log.debug("    Parsing comp profile: " + elem.getAttribute("Name"));
      comp = new Component();

      int childIndex = 1;
      NodeList children = elem.getChildNodes();
      for (int i = 0; i < children.getLength(); i++) {
        Node n = children.item(i);
View Full Code Here

    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("Component")) {
          Component comp = (Component) parseComponentProfile(child, false);
          field.setComponent(childIndex++, comp);
        }
      }
    }
View Full Code Here

    if (isSubComponent) {
      log.debug("      Parsing subcomp profile: " + elem.getAttribute("Name"));
      comp = new SubComponent();
    } else {
      log.debug("    Parsing comp profile: " + elem.getAttribute("Name"));
      comp = new Component();

      int childIndex = 1;
      NodeList children = elem.getChildNodes();
      for (int i = 0; i < children.getLength(); i++) {
        Node n = children.item(i);
View Full Code Here

    if (theValidateChildren) {
      if (profile.getComponents() > 0 && !profile.getUsage().equals("X")) {
        if (Composite.class.isAssignableFrom(type.getClass())) {
          Composite comp = (Composite) type;
          for (int i = 1; i <= profile.getComponents(); i++) {
            Component childProfile = profile.getComponent(i);
            try {
              Type child = comp.getComponent(i - 1);
              exList.addAll(doTestComponent(child, childProfile, profileID, validateChildren));
            } catch (DataTypeException de) {
              exList.add(new ProfileNotHL7CompliantException(
View Full Code Here

    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("Component")) {
          Component comp = (Component) parseComponentProfile(child, false);
          field.setComponent(childIndex++, comp);
        }
      }
    }
View Full Code Here

TOP

Related Classes of ca.uhn.hl7v2.conf.spec.message.Component

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.