Examples of Template


Examples of org.pdf4j.saxon.instruct.Template

        return true;
    }


    public Expression compile(Executable exec) throws XPathException {
        Template target = null;
        NamespaceResolver nsContext = null;

        if (calledTemplateExpression==null) {
            if (template==null) {
                return null;   // error already reported
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.filter.templates.Template

      writeDataSource(element.getDataSource());
      return;
    }

    final TemplateCollector tc = getReportWriter().getTemplateCollector();
    final Template template = (Template) element.getDataSource();

    // the template description of the element template will get the
    // template name as its name.
    final TemplateDescription templateDescription =
        tc.getDescription(template);
View Full Code Here

Examples of org.pirkaengine.core.Template

     * @throws ModelDeficientPropertyException
     */
    @Test
    public void create_public_field() throws ModelDeficientPropertyException {
       
        @SuppressWarnings("serial")
        Template template = new XhtmlTemplate("test") {
            @Override
            public Map<String, Object> createViewModel() {
                HashMap<String, Object> model = new HashMap<String, Object>();
                model.put("name", new Object());
View Full Code Here

Examples of org.raml.model.Template

        raml.setTitle("hi");
        raml.setBaseUriParameters(buildMap(new UriParameter()));
        raml.setDocumentation(Collections.singletonList(new DocumentationItem()));
        raml.setResources(buildMap(resource));
        raml.setProtocols(Collections.singletonList(Protocol.HTTP));
        raml.setResourceTypes(Collections.singletonList(buildMap(new Template())));
        raml.setTraits(Collections.singletonList(buildMap(new Template())));
        raml.setSecuritySchemes(Collections.singletonList(buildMap(securityScheme)));
        raml.setSecuredBy(Collections.singletonList(new SecurityReference("ref")));

        byte[] bytes = SerializationUtils.serialize(raml);
        Raml copy = (Raml) SerializationUtils.deserialize(bytes);
View Full Code Here

Examples of org.restlet.routing.Template

     *            The identifier of a mail.
     * @return The URI of the mail.
     * @throws ResourceException
     */
    protected Reference getMailRef(String identifier) throws ResourceException {
        final Template mailTemplate = new Template(getMailUriTemplate());
        Reference result = new Reference(mailTemplate.format(new MailResolver(
                identifier)));

        if (result.isRelative()) {
            result.setBaseRef(getMailboxUri());
            result = result.getTargetRef();
View Full Code Here

Examples of org.restlet.util.Template

        this.logService = logService;

        if (logService != null) {
            this.logger = Logger.getLogger(logService.getLoggerName());
            this.logTemplate = (logService.getLogFormat() == null) ? null
                    : new Template(getLogger(), logService.getLogFormat());
        }
    }
View Full Code Here

Examples of org.rhq.helpers.pluginGen.Props.Template

      SimpleProperty objectName = new SimpleProperty("objectName");
      objectName.setDescription("ObjectName of the Manager");
      objectName.setType("string");
      objectName.setReadOnly(true);
      root.getSimpleProps().add(objectName);
      Template defaultTemplate = new Template("defaultManualDiscovery");
      defaultTemplate.setDescription("The default setup for Infinispan");
      SimpleProperty connect2 = new SimpleProperty("connectorAddress");
      connect2.setDisplayName("URL of the remote server");
      connect2.setDefaultValue("service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:6996/jmxrmi");
      defaultTemplate.getSimpleProps().add(connect2);
      root.getTemplates().add(defaultTemplate);

      Props cache = new Props();
      cache.setName("Infinispan Cache");
      cache.setPkg("org.infinispan.jopr");
View Full Code Here

Examples of org.sgx.yuigwt.yui.handlebars.Template

}
protected void renderTemplate() {
  String dataStr = ta2.get("value");
  JavaScriptObject data2 = Y.JSON().parse(dataStr);
  String templCode = ta1.get("value");
  Template template1 = Y.Handlebars().compile(templCode);
  String renderedText1 = template1.render(data2);
  renderBox.empty();
  renderBox.append(renderedText1);
}
View Full Code Here

Examples of org.springframework.ide.eclipse.wizard.template.infrastructure.Template

  }

  @Override
  public void configureProject(IProgressMonitor monitor) throws CoreException {

    Template template = configurationDescriptor.getTemplate();
    IProject project = getProject();

    if (template == null) {
      handleError("No project template selected to configure the project: " + getProject().getName());
      return;
    }

    if (project == null) {
      handleError("Failed to create a project. No project available to configure.");
      return;
    }

    // Now collect all the template variable inputs
    IStatus status = collectInput();

    if (status == null || status.getSeverity() != IStatus.ERROR) {

      if (status != null && status.getSeverity() == IStatus.WARNING) {
        WizardPlugin.getDefault().getLog().log(status);
      }
      URI newPath = configurationDescriptor.getProjectLocationPath();

      String[] topLevelPackageTokens = configurationDescriptor.getTopLevelPackageTokens();
      String projectName = project.getName();

      try {
        ProcessingInfo processingInfo = new NewProjectProcessingInfo(template.getZippedLocation(), getProject()
            .getName(), configurationDescriptor.getSpringVersion());

        Processor processor = new Processor(processingInfo);
        IProject processedProject = processor.process(project, newPath, topLevelPackageTokens,
            configurationDescriptor.getProjectNameToken(), collectedInput, inputKinds, shell, monitor);
View Full Code Here

Examples of org.springmodules.template.Template

        this.templateResolver = templateResolver;
        this.templateName = templateName;
    }
   
    public String render() {
        Template template = this.templateResolver.resolve(this.templateName, this.characterEncoding, this.locale);
        StringWriter writer = new StringWriter();
       
        template.generate(writer, this.templateModel);
       
        return writer.toString();
    }
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.