eu.ihe.exception
Class IHE_Exception

java.lang.Object
  extended by eu.ihe.exception.IHE_Exception

public class IHE_Exception
extends java.lang.Object


Field Summary
private  org.jdom.Document document
           
private  boolean isparsing
           
private  java.lang.String[] mfich
           
private  org.jdom.Element racine
           
 java.lang.String users
           
static java.lang.String VersionUID
           
 
Constructor Summary
IHE_Exception()
           
IHE_Exception(java.lang.String[] es, boolean isparsing)
          The constructor who create the racine of the document
 
Method Summary
 void parseException(java.util.Vector vcy)
          To recover all the errors but not HL7Exception one for the parsing (essentially) and for the validation
 void ParserHL7Exception(ca.uhn.hl7v2.HL7Exception[] mesexceptions)
          Copy all of the HL7Exception on the result path
 void record(java.lang.String fichier)
          Create the result file
 void topost()
          Print the result
 void validmessage()
          Give the result of the validation or the parsing when is successful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mfich

private java.lang.String[] mfich

isparsing

private boolean isparsing

users

public java.lang.String users

VersionUID

public static final java.lang.String VersionUID
See Also:
Constant Field Values

racine

private org.jdom.Element racine

document

private org.jdom.Document document
Constructor Detail

IHE_Exception

public IHE_Exception()

IHE_Exception

public IHE_Exception(java.lang.String[] es,
                     boolean isparsing)
The constructor who create the racine of the document

Parameters:
es: - give the name of the in-file and the result-file
isparsing - :boolean which value = false if it is performing "validation" and true if it is parsing
Method Detail

ParserHL7Exception

public void ParserHL7Exception(ca.uhn.hl7v2.HL7Exception[] mesexceptions)
Copy all of the HL7Exception on the result path

Parameters:
mesexceptions: - the execption of the validation

topost

public void topost()
Print the result


record

public void record(java.lang.String fichier)
Create the result file

Parameters:
fichier: - filepath

parseException

public void parseException(java.util.Vector vcy)
To recover all the errors but not HL7Exception one for the parsing (essentially) and for the validation

Parameters:
vcy: - is the vector which contains these errors

validmessage

public void validmessage()
Give the result of the validation or the parsing when is successful