Class KmehrHelper
- java.lang.Object
-
- be.business.connector.recipe.utils.KmehrHelper
-
public class KmehrHelper extends Object
The Class KmehrHelper.
-
-
Field Summary
Fields Modifier and Type Field Description static StringW3C_XML_SCHEMA_NS_URIThe Constant W3C_XML_SCHEMA_NS_URI.
-
Constructor Summary
Constructors Constructor Description KmehrHelper()Instantiates a newKmehrHelper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertValidFeedback(byte[] xmlDocument)Assert valid notification.voidassertValidFeedback(List<String> errors, InputStream xmlFile)Assert valid feedback.voidassertValidKmehrPrescription(byte[] xmlDocument, String prescriptionType)Valid xml.voidassertValidKmehrPrescription(InputStream xmlFile, String prescriptionType)Assert valid kmehr prescription.voidassertValidNotification(byte[] xmlDocument)Assert valid notification.voidassertValidNotification(InputStream xmlFile)Assert valid notification.
-
-
-
Field Detail
-
W3C_XML_SCHEMA_NS_URI
public static final String W3C_XML_SCHEMA_NS_URI
The Constant W3C_XML_SCHEMA_NS_URI.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KmehrHelper
public KmehrHelper()
Instantiates a newKmehrHelper.
-
-
Method Detail
-
assertValidKmehrPrescription
public void assertValidKmehrPrescription(InputStream xmlFile, String prescriptionType) throws IntegrationModuleException
Assert valid kmehr prescription.- Parameters:
xmlFile- the xml fileprescriptionType- the prescription type- Throws:
IntegrationModuleException- the exception
-
assertValidNotification
public void assertValidNotification(InputStream xmlFile) throws IntegrationModuleException, SAXException
Assert valid notification.- Parameters:
xmlFile- the xml file- Throws:
IntegrationModuleException- the exceptionSAXException
-
assertValidFeedback
public void assertValidFeedback(List<String> errors, InputStream xmlFile) throws IntegrationModuleException, SAXException
Assert valid feedback.- Parameters:
xmlFile- the xml file- Throws:
IntegrationModuleException- the exceptionSAXException
-
assertValidNotification
public void assertValidNotification(byte[] xmlDocument) throws IntegrationModuleExceptionAssert valid notification.- Parameters:
xmlDocument- the xml document- Throws:
IntegrationModuleException- the exception
-
assertValidFeedback
public void assertValidFeedback(byte[] xmlDocument) throws IntegrationModuleExceptionAssert valid notification.- Parameters:
xmlDocument- the xml document- Throws:
IntegrationModuleException- the exception
-
assertValidKmehrPrescription
public void assertValidKmehrPrescription(byte[] xmlDocument, String prescriptionType) throws IntegrationModuleExceptionValid xml.- Parameters:
xmlDocument- the xml documentprescriptionType- the prescription type- Throws:
IntegrationModuleException- the exception
-
-