Tabnine Logo
WsgenTool$ReportOutput$Schema
Code IndexAdd Tabnine to your IDE (free)

How to use
WsgenTool$ReportOutput$Schema
in
com.sun.tools.ws.wscompile

Best Java code snippets using com.sun.tools.ws.wscompile.WsgenTool$ReportOutput$Schema (Showing top 4 results out of 315)

origin: javaee/metro-jax-ws

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
origin: javaee/metro-jax-ws

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
origin: org.glassfish.metro/webservices-tools

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
origin: com.sun.xml.ws/jaxws-tools

/**
 * Generates a small XML file that captures the key activity of wsgen,
 * so that test harness can pick up artifacts.
 */
private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) {
  try {
    ReportOutput.Report report = TXW.create(ReportOutput.Report.class,
        new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport))));
    report.wsdl(wsdlFile.getAbsolutePath());
    ReportOutput.writeQName(rtModel.getServiceQName(), report.service());
    ReportOutput.writeQName(rtModel.getPortName(), report.port());
    ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType());
    report.implClass(endpointClass.getName());
    for (Map.Entry<String, File> e : schemaFiles.entrySet()) {
      ReportOutput.Schema s = report.schema();
      s.ns(e.getKey());
      s.location(e.getValue().getAbsolutePath());
    }
    report.commit();
  } catch (IOException e) {
    // this is code for the test, so we can be lousy in the error handling
    throw new Error(e);
  }
}
com.sun.tools.ws.wscompileWsgenTool$ReportOutput$Schema

Most used methods

  • location
  • ns

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now