Package org.apache.ctakes.jdl.data.loader

Examples of org.apache.ctakes.jdl.data.loader.XmlLoader


              throw new RuntimeException(e);
            }
          }
          XmlLoadType xml = load.getXml();
          if (xml != null) {
            XmlLoader xPathParsing = new XmlLoader(xml,
                DomUtil.srcToDocument(srcData));
            xPathParsing.dataInsert(jdlConnection);
          }
        } catch (JAXBException e) {
          e.printStackTrace();
        } finally {
          try {
View Full Code Here


  }

  @Test
  public void getSqlInsert() throws JAXBException, FileNotFoundException {
    XmlLoadType loader;
    XmlLoader xmlLoader;
    loader = ObjectFactoryUtil.getLoadTypeBySrcXml(L1X).getXml();
    xmlLoader = new XmlLoader(loader, DomUtil.srcToDocument(D1X));
    assertThat(xmlLoader.getSqlInsert(loader), is(SQL));
    loader = ObjectFactoryUtil.getLoadTypeBySrcXml(L2X).getXml();
    xmlLoader = new XmlLoader(loader, DomUtil.srcToDocument(D2X));
    assertThat(xmlLoader.getSqlInsert(loader), is(SQL));
  }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.jdl.data.loader.XmlLoader

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.