What's New in the Sun TCP/IP HL7 Adapter

Using the Schematron API

Use the methods mentioned below ton invoke the schematron API from the JCD. The following are discussed.

Obtaining the Factory Object

com.stc.connector.hl7.schematron.SchematronValidatorFactory factory = com.stc.connector.hl7.schematron.SchematronValidatorFactory.getSchematronValidatorFactory();

Obtaining the Validator Object

com.stc.connector.hl7.schematron.SchematronValidator validator = factory.getDefaultValidator( domSource );

domSource is the DOMSource object of the schematron XML.