/** * The name of the bundle file. * * @return The name of the bundle file. */ protected String getBundleFileName() { String label = getLabel(); if (label == null) { label = getEnunciate().getConfig().getLabel(); } return label + "-php.zip"; }
/** * The name of the generated Ruby source file. * * @return The name of the generated Ruby source file. */ protected String getSourceFileName() { String label = getLabel(); if (label == null) { label = getEnunciate().getConfig().getLabel(); } return label + ".rb"; }
/** * The name of the generated PHP source file. * * @return The name of the generated PHP source file. */ protected String getSourceFileName() { String label = getLabel(); if (label == null) { label = getEnunciate().getConfig().getLabel(); } return label + ".php"; }
/** * The war file to create. * * @return The war file to create. */ public File getWarFile() { String filename = "enunciate.war"; if (getEnunciate().getConfig().getLabel() != null) { filename = getEnunciate().getConfig().getLabel() + ".war"; } if ((this.warConfig != null) && (this.warConfig.getName() != null)) { filename = this.warConfig.getName(); } return new File(getPackageDir(), filename); }
/** * The name of the bundle file. * * @return The name of the bundle file. */ protected String getBundleFileName() { if (this.bundleFileName != null) { return this.bundleFileName; } String label = getLabel(); if (label == null) { label = getEnunciate().getConfig().getLabel(); } return label + "-dotnet.zip"; }
/** * The name of the generated C# dll. * * @return The name of the generated C# file. */ protected String getDLLFileName() { if (this.DLLFileName != null) { return this.DLLFileName; } String label = getLabel(); if (label == null) { label = getEnunciate().getConfig().getLabel(); } return label + ".dll"; }
/** * The name of the generated C# xml documentation. * * @return The name of the generated C# xml documentation. */ protected String getDocXmlFileName() { if (this.docXmlFileName != null) { return this.docXmlFileName; } String label = getLabel(); if (label == null) { label = getEnunciate().getConfig().getLabel(); } return label + "-docs.xml"; }
/** * The name of the generated C# source file. * * @return The name of the generated C# source file. */ protected String getSourceFileName() { if (this.sourceFileName != null) { return this.sourceFileName; } String label = getLabel(); if (label == null) { label = getEnunciate().getConfig().getLabel(); } return label + ".cs"; }
/** * The name of the generated Ruby source file. * * @return The name of the generated Ruby source file. */ protected String getSourceFileName() { String label = getLabel(); if (label == null) { label = getEnunciate().getConfig() == null ? "enunciate" : getEnunciate().getConfig().getLabel(); } return label + ".c"; }
/** * The war file to create. * * @return The war file to create. */ public File getWarFile() { WebAppConfig config = getWebAppConfig(); if (config != null && config.getWar() != null) { return getEnunciate().resolvePath(config.getWar()); } else { String filename = "enunciate.war"; if (getEnunciate().getConfig().getLabel() != null) { filename = getEnunciate().getConfig().getLabel() + ".war"; } return new File(getPackageDir(), filename); } }
try { model.put("displayName", model.getEnunciateConfig().getLabel()); model.put("webAppFragments", enunciate.getWebAppFragments()); List<WebAppResource> envEntries = Collections.<WebAppResource>emptyList();
ResourceMethod exampleResource = getModelInternal().findExampleResourceMethod(); model.put("filename", getSourceFileName()); String label = getLabel() == null ? getEnunciate().getConfig() == null ? "enunciate" : getEnunciate().getConfig().getLabel() : getLabel(); NameForTypeDefinitionMethod nameForTypeDefinition = new NameForTypeDefinitionMethod(getTypeDefinitionNamePattern(), label, getModelInternal().getNamespacesToPrefixes());
EnunciateFreemarkerModel model = getModel(); String label = getLabel() == null ? getEnunciate().getConfig() == null ? "enunciate" : getEnunciate().getConfig().getLabel() : getLabel(); NameForTypeDefinitionMethod nameForTypeDefinition = new NameForTypeDefinitionMethod(getTypeDefinitionNamePattern(), label, model.getNamespacesToPrefixes()); model.put("nameForTypeDefinition", nameForTypeDefinition);
model.put("soapAddressPath", new SoapAddressPathMethod()); model.put("restSubcontext", model.getEnunciateConfig().getDefaultRestSubcontext()); model.put("displayName", model.getEnunciateConfig().getLabel()); if (!globalServiceInterceptors.isEmpty()) { for (GlobalServiceInterceptor interceptor : this.globalServiceInterceptors) {