ca.infoway.messagebuilder.marshalling.hl7
Class XmlToModelResult

Package class diagram package XmlToModelResult
java.lang.Object
  extended by ca.infoway.messagebuilder.marshalling.hl7.XmlToModelResult
All Implemented Interfaces:
Hl7Errors

public class XmlToModelResult
extends Object
implements Hl7Errors

An object that represents the result of transforming an object from HL7 XML format to an object representation. The result tends to contain two key items:

  1. An object representation of the HL7 message that contains all of the populated data.
  2. A set of errors that were encountered during parsing of the message.

Author:
Intelliware Development

Constructor Summary
XmlToModelResult()
           
 
Method Summary
 void addHl7Error(Hl7Error hl7Error)
           
 void clearErrors()
           
 List<Hl7Error> getHl7Errors()
           
 Object getMessageObject()
          The object representation of the HL7 message.
 boolean isValid()
           
 void setMessageObject(Object messageObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlToModelResult

public XmlToModelResult()
Method Detail

getMessageObject

public Object getMessageObject()

The object representation of the HL7 message.

Returns:
- the populated classes that contain the message data.

setMessageObject

public void setMessageObject(Object messageObject)

isValid

public boolean isValid()
Specified by:
isValid in interface Hl7Errors

addHl7Error

public void addHl7Error(Hl7Error hl7Error)
Specified by:
addHl7Error in interface Hl7Errors

getHl7Errors

public List<Hl7Error> getHl7Errors()
Specified by:
getHl7Errors in interface Hl7Errors

clearErrors

public void clearErrors()


Copyright © 2013. All Rights Reserved.