Examples of toXml()


Examples of org.apache.uima.collection.metadata.CpeDescription.toXML()

        FileOutputStream out = null;
        try {
            // Save to file
            if (outputXmlDescriptorFileName != null && outputXmlDescriptorFileName.trim().length() > 0) {
                out = new FileOutputStream (outputXmlDescriptorFileName);
                cpeDesc.toXML(out);
                // Trace.trace("*** write to file: " + outputXmlDescriptorFileName);
            }
            // Return String
            ((CpeDescriptionImpl) cpeDesc).toXML(w);
            // Trace.err(prettyPrintModel(this));
View Full Code Here

Examples of org.apache.uima.cpe.model.ConfigParameterModel.toXML()

                    // casProc.setConfigurationParameterSettings(settings);
                    for (int k=0; k<cpeOverrideList.size(); ++k) {
                        ConfigParameterModel m = (ConfigParameterModel) cpeOverrideList.get(k);
                        if (m.getCpeValue() != null) {
                            settings.setParameterValue (m.getName(), m.getCpeValue());
                            m.toXML(aContentHandler, aWriteDefaultNamespaceAttribute);
                        }
                    }
                   
                    // </configurationParameterSettings>
                    aContentHandler.endElement(getXmlizationInfo().namespace,
View Full Code Here

Examples of org.apache.uima.resource.PearSpecifier.toXML()

    FileOutputStream fos = null;

    try
    {
        fos = new FileOutputStream(outputFile);
        pearSpec.toXML(fos);
    }
    finally
    {
        if (fos != null)
        {
View Full Code Here

Examples of org.apache.uima.resource.metadata.ProcessingResourceMetaData.toXML()

    // convert to vinci frame
    AFrame response = new AFrame();
    SaxVinciFrameBuilder vinciFrameBuilder = new SaxVinciFrameBuilder();
    vinciFrameBuilder.setParentFrame(response);
    vinciFrameBuilder.startDocument();
    md.toXML(vinciFrameBuilder);
    vinciFrameBuilder.endDocument();
    return response;
  }

  public Descriptor getDescriptor() {
View Full Code Here

Examples of org.apache.uima.resource.metadata.TypePriorities.toXML()

                } else {
                    tp.resolveImports();
                }
                // Trace.err(ae.getAnalysisEngineMetaData().getName() + ": HAS Type priorities");
                try {
                    tp.toXML(System.out);
                } catch (SAXException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                } catch (IOException e) {
                    // TODO Auto-generated catch block
View Full Code Here

Examples of org.apache.uima.resource.metadata.TypeSystemDescription.toXML()

    // options.put(OPTION_GENERATE_UIMA_LIST_TYPES, Boolean.TRUE);
    TypeSystemDescription tsDesc = ecore2UimaTypeSystem(args[0], options);

    FileOutputStream os = new FileOutputStream(args[1]);
    try {
      tsDesc.toXML(os);
    } finally {
      os.close();
    }

    // test creating a CAS
View Full Code Here

Examples of org.apache.uima.resource.metadata.impl.TypeSystemDescription_impl.toXML()

    try {
      typeSystemFile = new File(project.getBuild().getDirectory(), "jcasgen/typesystem.xml");
      getLog().debug("JCasGen: Writing master descriptor to in '" + typeSystemFile + "'");
      typeSystemFile.getParentFile().mkdirs();
      typeSystemOs = new FileOutputStream(typeSystemFile);
      typeSystem.toXML(typeSystemOs);
    } catch (IOException e) {
      throw new MojoExecutionException(e.getMessage(), e.getCause());
    } catch (SAXException e) {
      throw new MojoExecutionException(e.getMessage(), e.getCause());
    } finally {
View Full Code Here

Examples of org.apache.uima.resourceSpecifier.factory.UimaASPrimitiveDeploymentDescriptor.toXML()

    // Two instances of AE in a jvm
    dd.setScaleup(2);

    // Generate deployment descriptor in xml format
    String ddXML = dd.toXML();
    System.out.println(ddXML);
   
    File tempFile = File.createTempFile("Deploy_PersonTitle", ".xml");
    BufferedWriter out = new BufferedWriter(new FileWriter(tempFile));
    out.write(ddXML);
View Full Code Here

Examples of org.apache.uima.util.XMLizable.toXML()

        Object val = curEntry.getValue();
        if (val.getClass().isArray()) {
          Object[] arr = (Object[]) val;
          for (int j = 0; j < arr.length; j++) {
            XMLizable elem = (XMLizable) arr[j];
            elem.toXML(aContentHandler);
          }
        } else {
          ((XMLizable) val).toXML(aContentHandler);
        }
View Full Code Here

Examples of org.apache.vinci.transport.VinciFrame.toXML()

        } catch (Exception e) {
          e.printStackTrace();
        }
        if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
          UIMAFramework.getLogger(this.getClass()).log(Level.FINEST, input.toXML());
          UIMAFramework.getLogger().log(Level.FINEST, input.toXML());
        }
        return input;
      } else if (cmd.equals("resolve")) {
        String publicVNSHost = System.getProperty("PVNS_HOST");
        String publicVNSPort = System.getProperty("PVNS_PORT");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.