Examples of Template


Examples of com.griddynamics.genesis.tools.templates.Template

                                              @Named("templateVersion") String templateVersion) {
     
      Assert.assertTrue(request.checkStatusCode200(), "Status code is " + request.getResponse().getStatusCode() + ", but must be 200");

      List<Template> settingsList = Arrays.asList(request.getResponseObject(Template[].class));
       Template expectedTemplate = new Template(templateName, templateVersion);
       Assert.assertTrue(settingsList.contains(expectedTemplate));
    }
View Full Code Here

Examples of com.hlcl.rql.as.Template

   *            headline of new content page
   */
  public ContentPage createContentPage(String headline, boolean addAtBottom, String requesterUserId, boolean isResponsibleIdAPerson,
      String responsibleId, String responsibleName, String responsibleDepartmentNumber) throws RQLException {
    // create content page
    Template template = getTemplateByName(getParameter("contentTmpltFldrName"), getParameter("contentPageTmpltName"));
    ContentPage result = new ContentPage(getContentPagesList().createAndConnectPage(template, headline, addAtBottom));
    // set responsibility
    result.setResponsibility(requesterUserId, isResponsibleIdAPerson, responsibleId, responsibleName, responsibleDepartmentNumber);
    // updated today
    result.setUpdatedToday();
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.Template

//        }
//        else
        {
            out.incIndent(BLOCK_INDENT) ;
            out.newline() ;
            Template t = query.getConstructTemplate() ;
            fmtTemplate.format(t) ;
            out.decIndent(BLOCK_INDENT) ;
        }
    }
View Full Code Here

Examples of com.iCo6.util.Template

            // Setup Configuration
            Constants.load(new File(directory, "Config.yml"));

            // Setup Template
            Template = new Template(directory.getPath(), "Template.yml");

            // Upgrade Template to 6.0.9b
            LinkedHashMap<String, String> nodes = new LinkedHashMap<String, String>();
            nodes.put("top.opening", "<green>-----[ <white>Wealthiest Accounts <green>]-----");
            nodes.put("top.item", "<gray>+i. <green>+name <gray>- <white>+amount");
View Full Code Here

Examples of com.inet.jorthodictionaries.BookGenerator_ru.Template

    @Override
    boolean isValidLanguage( String word, String wikiText ) {

        //The list of templates can be found at:
        //http://ru.wiktionary.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%D1%8B_%D1%81%D0%BB%D0%BE%D0%B2%D0%BE%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D0%B8%D0%B9/%D0%A4%D0%B0%D0%BC%D0%B8%D0%BB%D0%B8%D0%B8
        Template template = findRules( word, wikiText );
        if(template.getRuleCount() > 0 ){
            templates.put( template.getName(), template );
            System.out.print(".");
        }
        return false;
    }
View Full Code Here

Examples of com.intellij.codeInsight.template.Template

            TemplateSettings templateSettings = TemplateSettings.getInstance();
            Document doc = parser.build(inputStream);
            Element root = doc.getRootElement();
            for (Object element : root.getChildren()) {
                if (element instanceof Element) {
                    final Template template = readExternal((Element) element, templateName);
                    final String key = template.getKey();
                    // Only add if not present
                    if (key != null && templateSettings.getTemplate(key) == null) {
                        templateSettings.addTemplate(template);
                    }
                }
View Full Code Here

Examples of com.jada.jpa.entity.Template

     
      siteDomain.setRecCreateBy(user.getUserId());
      siteDomain.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      siteDomain.setSite(site);
     
      Template template = TemplateDAO.load(site.getSiteId(), Constants.TEMPLATE_BASIC);
      siteDomain.setTemplate(template);
      form.setTemplateId(template.getTemplateId().toString());
      form.setModuleDisplaySize(String.valueOf(Constants.TEMPLATE_MODULE_DISPLAY_SIZE));
      siteDomainParamBean.setModuleDisplaySize(String.valueOf(Constants.TEMPLATE_MODULE_DISPLAY_SIZE));

      siteDomainLanguage = new SiteDomainLanguage();
      siteDomainLanguage.setSiteLogoContentType("");
      siteDomainLanguage.setRecCreateBy(user.getUserId());
      siteDomainLanguage.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      siteDomain.setSiteDomainLanguage(siteDomainLanguage);
      siteDomain.getSiteDomainLanguages().add(siteDomainLanguage);
      siteDomain.setBaseCurrency(site.getSiteCurrencyClassDefault());
      SiteProfileClass siteProfileClass = SiteProfileClassDAO.load(form.getSiteProfileClassId());
      siteDomainLanguage.setSiteProfileClass(siteProfileClass);
    }
    else {
          Template template = TemplateDAO.load(site.getSiteId(), Format.getLong(form.getTemplateId()));
          siteDomain.setTemplate(template);
          if (!Format.isNullOrEmpty(siteDomainLanguage.getSiteDomainParam())) {
            siteDomainParamBean = (SiteDomainParamBean) Utility.joxUnMarshall(SiteDomainParamBean.class, siteDomainLanguage.getSiteDomainParam());
          }
          siteDomainParamBean.setMailFromContactUs(form.getMailFromContactUs());
View Full Code Here

Examples of com.javaforge.bobber.archetype.model.Template

            URLClassLoader archetypeJarLoader = new URLClassLoader(urls);

            Thread.currentThread().setContextClassLoader(archetypeJarLoader);
            for (Iterator i = archetype.getTemplates().iterator(); i.hasNext();)
            {
                final Template template = (Template) i.next();

                // Check the optional 'condition' property on the template.
                // If present and the variable it points to is 'true', then
                // continue processing. If it's false, then skip.
                // If condition is not specified, assume the template should
                // be processed.
                boolean shouldProcess = true;
                String condition = template.getDependsOnVar();
                String requiredValue = null;
                List options = new ArrayList();
                if (StringUtils.isNotEmpty(condition))
                {
                    //Crappy logic processing -- for now
                    boolean not = false;
                    //Allow very simple matching logic to match templates against variable values
                    int x = condition.indexOf("!=");
                    getLogger().debug("Processing Condition : " + condition);
                    if (x > -1)
                    {
                        not = true;
                        requiredValue = condition.substring(x + 2).trim();
                        options = getListOfValues(requiredValue);
                        condition = condition.substring(0, x).trim();
                    }
                    else
                    {
                        x = condition.indexOf("=");
                        if (x > -1)
                        {
                            requiredValue = condition.substring(x + 1);
                            options = getListOfValues(requiredValue);
                            condition = condition.substring(0, x);
                        }
                    }
                    getLogger().debug("Not Expr: " + not);
                    getLogger().debug("Condition Value: '" + condition + "'");
                    getLogger().debug("Required Value: '" + requiredValue + "'");
                    final Variable var = (Variable) findVariable(condition, variables);
                    if (var != null)
                    {
                        final String strValue = (String) context.get(var.getName());
                        getLogger().debug("Variable Value is: '" + strValue + "'");
                        if (requiredValue == null)
                        {
                            if (!Boolean.valueOf(strValue).booleanValue())
                            {
                                shouldProcess = false;
                            }
                        }
                        else
                        {
                            if (!options.contains(strValue))
                            {
                                shouldProcess = false;
                            }
                        }

                    }
                    else
                    {
                        getLogger().debug("Variable Value is: null");
                        shouldProcess = false;
                    }
                    if (not)
                    {
                        shouldProcess = !shouldProcess;
                    }
                }

                if (shouldProcess)
                {
                    processTemplate(template, outputDirectory, context);
                }
                else
                {
                    getLogger().debug("Condition not met, skipping " + template.getOutput());
                }
            }

        }
        catch (MalformedURLException mfe)
View Full Code Here

Examples of com.mysema.query.types.Template

            List<Object> args = new ArrayList<Object>(2);
            if (path.getMetadata().getParent() != null) {
                args.add((Expression<?>)path.getMetadata().getParent());
            }
            args.add(path.getMetadata().getElement());
            final Template template = getTemplate(pathType);
            for (Template.Element element : template.getElements()) {
                Object rv = element.convert(args);
                if (rv instanceof Expression) {                   
                    ((Expression)rv).accept(this, context);
                } else if (element.isString()) {   
                    append(rv.toString());
View Full Code Here

Examples of com.plainsource.commons.text.template.Template

        task.execute(input);
        print(task);
    }

    public Template parseCommandLineOptionTemplate() throws IOException, UBL4JException {
        Template template = null;
        String templateFilePath = options.templateFilePath;
        if (templateFilePath != null) {
            File templateFile = new File(templateFilePath);
            if (templateFile.exists()) {
                template = TemplateFactory.createDefaultTemplate(parseCommandlineOutputFormat(),
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.