Package org.codehaus.enunciate.template.freemarker

Examples of org.codehaus.enunciate.template.freemarker.SimpleNameWithParamsMethod


      model.put("packageFor", new ClientPackageForMethod(conversions));
      model.put("overlayPackageFor", new ClientPackageForMethod(overlayConversions));
      model.put("isAccessorOfTypeLong", new IsAccessorOfTypeLongMethod());
      model.put("classnameFor", classnameFor);
      model.put("overlayClassnameFor", overlayClassnameFor);
      model.put("simpleNameFor", new SimpleNameWithParamsMethod(classnameFor));
      model.put("overlaySimpleNameFor", new SimpleNameWithParamsMethod(overlayClassnameFor));
      model.put("gwtSubcontext", getGwtSubcontext());
      model.put("accessorOverridesAnother", new AccessorOverridesAnotherMethod());

      model.setFileOutputDirectory(clientSideGenerateDir);
      Properties gwt2jaxbMappings = new Properties();
View Full Code Here


      Map<String, String> conversions = Collections.<String, String>emptyMap();
      ClassnameForMethod classnameFor = new ClassnameForMethod(conversions);
      classnameFor.setJdk15(true);
      model.put("packageFor", new ClientPackageForMethod(conversions));
      model.put("classnameFor", classnameFor);
      model.put("simpleNameFor", new SimpleNameWithParamsMethod(classnameFor));
      model.put("docsDir", enunciate.getProperty("docs.webapp.dir"));
      URL configTemplate = isSpringEnabled() ? getJAXWSSpringTemplateURL() : getSunJAXWSTemplateURL();
      File configDir = getConfigGenerateDir();
      configDir.mkdirs();
      model.setFileOutputDirectory(configDir);
View Full Code Here

      model.put("responseDocumentQName", new ResponseDocumentQNameMethod());
      ClientClassnameForMethod classnameFor = new ClientClassnameForMethod(this.packageToNamespaceConversions);
      classnameFor.setUseClientNameConversions(true);
      model.put("classnameFor", classnameFor);
      model.put("listsAsArraysClassnameFor", new ListsAsArraysClientClassnameForMethod(this.packageToNamespaceConversions));
      model.put("simpleNameFor", new SimpleNameWithParamsMethod(classnameFor));
      model.put("csFileName", getSourceFileName());
      model.put("accessorOverridesAnother", new AccessorOverridesAnotherMethod());

      debug("Generating the C# client classes...");
      URL apiTemplate = isSingleFilePerClass() ? getTemplateURL("api-multiple-files.fmt") : getTemplateURL("api.fmt");
View Full Code Here

      classnameFor.setUseClientNameConversions(true);
      model.put("classnameFor", classnameFor);
      TypeNameForMethod typeNameFor = new TypeNameForMethod(this.packageToModuleConversions);
      typeNameFor.setUseClientNameConversions(true);
      model.put("typeNameFor", typeNameFor);
      SimpleNameWithParamsMethod simpleNameFor = new SimpleNameWithParamsMethod(classnameFor);
      model.put("simpleNameFor", simpleNameFor);
      model.put("phpFileName", getSourceFileName());
      model.put("findRootElement", new FindRootElementMethod());
      model.put("referencedNamespaces", new ReferencedNamespacesMethod());
      model.put("prefix", new PrefixMethod());
View Full Code Here

      moduleFor.setUseClientNameConversions(true);
      model.put("moduleFor", moduleFor);
      ClientClassnameForMethod classnameFor = new ClientClassnameForMethod(this.packageToModuleConversions);
      classnameFor.setUseClientNameConversions(true);
      model.put("classnameFor", classnameFor);
      SimpleNameWithParamsMethod simpleNameFor = new SimpleNameWithParamsMethod(classnameFor);
      model.put("simpleNameFor", simpleNameFor);
      model.put("rubyFileName", getSourceFileName());

      debug("Generating the Ruby data classes...");
      URL apiTemplate = getTemplateURL("api.fmt");
View Full Code Here

        }
      }

      debug("Generating the AMF externalizable types and their associated mappers...");
      AMFClassnameForMethod amfClassnameForMethod = new AMFClassnameForMethod(packages);
      model.put("simpleNameFor", new SimpleNameWithParamsMethod(amfClassnameForMethod));
      model.put("classnameFor", amfClassnameForMethod);
      for (SchemaInfo schemaInfo : model.getNamespacesToSchemas().values()) {
        for (TypeDefinition typeDefinition : schemaInfo.getTypeDefinitions()) {
          if (!isFacetExcluded(typeDefinition)) {
            model.put("type", typeDefinition);
            processTemplate(amfTypeTemplate, model);
            processTemplate(amfTypeMapperTemplate, model);
          }
        }
      }

      debug("Generating the AMF endpoint beans...");
      for (WsdlInfo wsdlInfo : model.getNamespacesToWSDLs().values()) {
        for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) {
          if (!isFacetExcluded(ei)) {
            model.put("endpointInterface", ei);
            processTemplate(amfEndpointTemplate, model);
          }
        }
      }

      URL endpointTemplate = getTemplateURL("as3-endpoint.fmt");
      URL typeTemplate = getTemplateURL("as3-type.fmt");
      URL enumTypeTemplate = getTemplateURL("as3-enum-type.fmt");

      //build up the list of as3Aliases...
      HashMap<String, String> as3Aliases = new HashMap<String, String>();
      for (SchemaInfo schemaInfo : model.getNamespacesToSchemas().values()) {
        for (TypeDefinition typeDefinition : schemaInfo.getTypeDefinitions()) {
          if (!isFacetExcluded(typeDefinition)) {
            as3Aliases.put(amfClassnameForMethod.convert(typeDefinition), typeDefinition.getClientSimpleName());
          }
        }
      }

      model.setFileOutputDirectory(clientGenerateDir);
      HashMap<String, String> conversions = new HashMap<String, String>();
      //todo: accept client-side package mappings?
      ClientPackageForMethod as3PackageFor = new ClientPackageForMethod(conversions);
      as3PackageFor.setUseClientNameConversions(true);
      model.put("packageFor", as3PackageFor);
      AS3UnqualifiedClassnameForMethod as3ClassnameFor = new AS3UnqualifiedClassnameForMethod(conversions);
      as3ClassnameFor.setUseClientNameConversions(true);
      model.put("classnameFor", as3ClassnameFor);
      model.put("simpleNameFor", new SimpleNameWithParamsMethod(as3ClassnameFor));
      ComponentTypeForMethod as3ComponentTypeFor = new ComponentTypeForMethod(conversions);
      as3ComponentTypeFor.setUseClientNameConversions(true);
      model.put("componentTypeFor", as3ComponentTypeFor);
      model.put("amfClassnameFor", amfClassnameForMethod);
      model.put("amfComponentTypeFor", new ComponentTypeForMethod(packages));
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.template.freemarker.SimpleNameWithParamsMethod

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.