Examples of generate()


Examples of org.apache.vysper.xmpp.modules.extension.xep0220_server_dailback.DialbackIdGenerator.generate()

    private Entity originating = EntityImpl.parseUnchecked("example.org");
    private String streamId = "D60000229F";
   
    public void testId() {
        DialbackIdGenerator generator = new DialbackIdGenerator();
        String id = generator.generate(receiving, originating, streamId);
       
        Assert.assertTrue(generator.verify(id, receiving, originating, streamId));
       
    }
View Full Code Here

Examples of org.apache.wink.common.model.wadl.WADLGenerator.generate()

        try {
            org.apache.wink.common.model.wadl.Application wadlDocument = null;
            WADLGenerator generator = new WADLGenerator();
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(resourceClass);
            wadlDocument = generator.generate(binding.getURI(), classes);
           
            MessageBodyWriter<org.apache.wink.common.model.wadl.Application> writer =
                this.getDeploymentConfiguration().getProvidersRegistry().
                     getMessageBodyWriter(org.apache.wink.common.model.wadl.Application.class,
                                          org.apache.wink.common.model.wadl.Application.class,
View Full Code Here

Examples of org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate()

    public void generate() throws Exception {

        try {

            Java2WSDLCodegenEngine java2WSDL=new Java2WSDLCodegenEngine(fillOptionMap());
            java2WSDL.generate();

        } catch (Throwable e) {

            throw new Exception("Code generation failed due to " + e.getLocalizedMessage());
        }
View Full Code Here

Examples of org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate()

    public static void main(String[] args) throws Exception {
        Java2WSDLCommandLineOptionParser commandLineOptionParser = new Java2WSDLCommandLineOptionParser(
                args);
        if (isJwsOptionEnabled(commandLineOptionParser)){
            JAXWS2WSDLCodegenEngine engine = new JAXWS2WSDLCodegenEngine(commandLineOptionParser.getAllOptions(), args);
            engine.generate();
            return;
         }       
        //  validate the arguments
        validateCommandLineOptions(commandLineOptionParser);
        Java2WSDLCodegenEngine engine = new Java2WSDLCodegenEngine(commandLineOptionParser.getAllOptions());
View Full Code Here

Examples of org.apache.ws.jaxme.generator.Generator.generate()

    gen.setTargetDirectory(new File(pTempDir, "src"));
    gen.setValidating(pValidating);
    gen.setSchemaReader(new JAXBSchemaReader());
    gen.setEntityResolver(new StoringEntityResolver(new File(pTempDir, "schema")));
    try {
      gen.generate(pURL);
    } catch (Exception e) {
      throw new ServletException(e);
    }
   
    pResponse.setContentType("application/zip");
View Full Code Here

Examples of org.apache.ws.jaxme.generator.impl.GeneratorImpl.generate()

      }

      for (int i = 0;  i < schemaFiles.length;  i++) {
        log("Reading schema file " + schemaFiles[i], Project.MSG_VERBOSE);
        try {
      SchemaSG schemaSG = generator.generate(schemaFiles[i]);
          if (producesFilesSet != null) {
            JavaSourceFactory jsf = schemaSG.getJavaSourceFactory();
            File targetDirectory = getTarget();
            for (Iterator iter = jsf.getJavaSources();  iter.hasNext()) {
              JavaSource js = (JavaSource) iter.next();
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.PropertySG.generate()

    ParticleSG[] myParticles = pController.getParticles();
    for (int i = 0;  i < particles.length;  i++) {
      ParticleSG particle = myParticles[i];
      if (particle.isElement()) {
        PropertySG elementSG = particle.getPropertySG();
        elementSG.generate(pSource);
      } else if (particle.isGroup()) {
        // TODO: Implement groups referencing groups
        throw new LocSAXException("Nested groups are yet unsupported", particle.getLocator());
      } else if (particle.isWildcard()) {
        // TODO: Implement Wildcard handling
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.SchemaSG.generate()

        "    </xs:complexType>\n" +
        "  </xs:element>\n" +
        "</xs:schema>\n";
        SchemaSG schema = parse(schemaSpec, "testMultipleGroupRejected.xsd");
        try {
          schema.generate();
          fail("Expected an exception");
        } catch (SAXException e) {
          assertTrue(e.getMessage().indexOf("Model groups with maxOccurs > 1 are not yet supported.") != -1);
        }
    }
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG.generate()

    pController.getXMLSerializer();
    pController.getXMLHandler();

    TypeSG myTypeSG = pController.getTypeSG();
    if (myTypeSG.isGlobalClass()  &&  !myTypeSG.isGlobalType()) {
      myTypeSG.generate();
    }
    log.finest(mName, "<-");
  }
}
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.impl.PropertySGImpl.generate()

        public String getPropertyName(PropertySG pController) throws SAXException {
          return "value";
        }
      };
      PropertySGImpl pSG = new PropertySGImpl(head);
      pSG.generate(js);
    } else {
      elementSG.generate(pJs);
    }

    ObjectSG oSG = pParticle.getObjectSG();
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.