Package org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates.TemplateDescription


    final TemplateCollector tc = writerContext.getTemplateCollector();

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

    if (templateDescription == null)
    {
      throw new BundleWriterException("Unknown template type: " + template);
    }

    // create the parent description before the template description is filled.
    final TemplateDescription parentTemplate = (TemplateDescription) templateDescription.getInstance();

    try
    {
      templateDescription.setParameterFromObject(template);
View Full Code Here


    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);

    if (templateDescription == null)
    {
      throw new ReportWriterException("Unknown template type: " + template);
    }

    // create the parent description before the template description is filled.
    final TemplateDescription parentTemplate = (TemplateDescription) templateDescription.getInstance();

    try
    {
      templateDescription.setParameterFromObject(template);
    }
View Full Code Here

    if (references == null)
    {
      throw new ParseException("The 'references' attribute is required for template definitions",
          getRootHandler().getDocumentLocator());
    }
    TemplateDescription template = templateCollection.getTemplate(references);
    if (template == null)
    {
      throw new ParseException("The template '" + references + "' is not defined",
          getRootHandler().getDocumentLocator());
    }

    // Clone the defined template ... we don't change the original ..
    template = (TemplateDescription) template.getInstance();
    if (templateName != null)
    {
      template.setName(templateName);
      templateCollection.addTemplate(template);
    }
    setObjectDescription(template);
  }
View Full Code Here

    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);

    if (templateDescription == null)
    {
      throw new ReportWriterException("Unknown template type: " + template);
    }

    // create the parent description before the template description is filled.
    final TemplateDescription parentTemplate = (TemplateDescription) templateDescription.getInstance();

    try
    {
      templateDescription.setParameterFromObject(template);
    }
View Full Code Here

    final TemplateCollector tc = writerContext.getTemplateCollector();

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

    if (templateDescription == null)
    {
      throw new BundleWriterException("Unknown template type: " + template);
    }

    // create the parent description before the template description is filled.
    final TemplateDescription parentTemplate = (TemplateDescription) templateDescription.getInstance();

    try
    {
      templateDescription.setParameterFromObject(template);
View Full Code Here

    if (references == null)
    {
      throw new ParseException("The 'references' attribute is required for template definitions",
          getRootHandler().getDocumentLocator());
    }
    TemplateDescription template = templateCollection.getTemplate(references);
    if (template == null)
    {
      throw new ParseException("The template '" + references + "' is not defined",
          getRootHandler().getDocumentLocator());
    }

    // Clone the defined template ... we don't change the original ..
    template = (TemplateDescription) template.getInstance();
    if (templateName != null)
    {
      template.setName(templateName);
      templateCollection.addTemplate(template);
    }
    setObjectDescription(template);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates.TemplateDescription

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.