Package ca.uhn.hl7v2.conf

Examples of ca.uhn.hl7v2.conf.ProfileException


        parser.parse(new InputSource(new StringReader(profileString)));
        log.debug("DOM parse complete");
        doc = parser.getDocument();
      }
    } catch (SAXException se) {
      throw new ProfileException("SAXException parsing message profile: " + se.getMessage());
    } catch (IOException ioe) {
      throw new ProfileException("IOException parsing message profile: " + ioe.getMessage());
    }
    return doc;
  }
View Full Code Here


        Node n = el.getFirstChild();
        if (n.getNodeType() == Node.TEXT_NODE) {
          val = n.getNodeValue();
        }
      } catch (Exception e) {
        throw new ProfileException("Unable to get value of node " + name, e);
      }
    }
    return val;
  }
View Full Code Here

    public void setConformance(Conformance conformance) throws ProfileException {
        Conformance oldConformance = this.conformance;
        try {
            vetoableChangeSupport.fireVetoableChange("conformance", oldConformance, conformance);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
        this.conformance = conformance;
        propertyChangeSupport.firePropertyChange("conformance", oldConformance, conformance);
    }
View Full Code Here

    public void setConformanceType(String conformanceType) throws ProfileException {
        String oldConformanceType = this.conformanceType;
        try {
            vetoableChangeSupport.fireVetoableChange("conformanceType", oldConformanceType, conformanceType);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
        this.conformanceType = conformanceType;
        propertyChangeSupport.firePropertyChange("conformanceType", oldConformanceType, conformanceType);
    }
View Full Code Here

        try {
            vetoableChangeSupport.fireVetoableChange("encodings", null, null );
        }
        catch(java.beans.PropertyVetoException vetoException ) {
            this.encodings[index] = oldEncodings;
            throw new ProfileException(null, vetoException);
        }
        propertyChangeSupport.firePropertyChange("encodings", null, null );
    }
View Full Code Here

    public void setHL7OID(String HL7OID) throws ProfileException {
        String oldHL7OID = this.HL7OID;
        try {
            vetoableChangeSupport.fireVetoableChange("HL7OID", oldHL7OID, HL7OID);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
        this.HL7OID = HL7OID;
        propertyChangeSupport.firePropertyChange("HL7OID", oldHL7OID, HL7OID);
    }
View Full Code Here

    public void setHL7Version(String HL7Version) throws ProfileException {
        String oldHL7Version = this.HL7Version;
        try {
            vetoableChangeSupport.fireVetoableChange("HL7Version", oldHL7Version, HL7Version);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
        this.HL7Version = HL7Version;
        propertyChangeSupport.firePropertyChange("HL7Version", oldHL7Version, HL7Version);
    }
View Full Code Here

    public void setImpNote(String impNote) throws ProfileException {
        String oldImpNote = this.impNote;
        try {
            vetoableChangeSupport.fireVetoableChange("impNote", oldImpNote, impNote);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
        this.impNote = impNote;
        propertyChangeSupport.firePropertyChange("impNote", oldImpNote, impNote);
    }
View Full Code Here

    public void setMessage(StaticDef message) throws ProfileException {
        StaticDef oldMessage = this.message;
        try {
            vetoableChangeSupport.fireVetoableChange("message", oldMessage, message);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
        this.message = message;
        propertyChangeSupport.firePropertyChange("message", oldMessage, message);
    }
View Full Code Here

    public void setName(String theName) throws ProfileException {
        String oldOrgName = this.name;
        try {
            vetoableChangeSupport.fireVetoableChange("name", oldOrgName, theName);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
        this.name = theName;
        propertyChangeSupport.firePropertyChange("name", oldOrgName, theName);
  }
View Full Code Here

TOP

Related Classes of ca.uhn.hl7v2.conf.ProfileException

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.