Package org.pentaho.reporting.libraries.xmlns.writer

Examples of org.pentaho.reporting.libraries.xmlns.writer.DefaultTagDescription


    {
      throw new IOException("Unable to generate unique name for Mondrian-Data-Source");
    }

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription = new DefaultTagDescription(ClassicEngineBoot.getInstance().getGlobalConfig(), MondrianDataFactoryModule.TAG_DEF_PREFIX);
    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", MondrianDataFactoryModule.NAMESPACE);
View Full Code Here


    {
      throw new IOException("Unable to generate unique name for Mondrian-Data-Source");
    }

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription = new DefaultTagDescription(ClassicEngineBoot.getInstance().getGlobalConfig(), MondrianDataFactoryModule.TAG_DEF_PREFIX);
    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", MondrianDataFactoryModule.NAMESPACE);
View Full Code Here

    {
      throw new IOException("Unable to generate unique name for Mondrian-Data-Source");
    }

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription =
        new DefaultTagDescription(ClassicEngineBoot.getInstance().getGlobalConfig(),
            Olap4JDataFactoryModule.TAG_DEF_PREFIX);
    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");

    final AttributeList rootAttrs = new AttributeList();
View Full Code Here

    if (isEmpty())
    {
      return;
    }

    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.configure(JFreeReportBoot.getInstance().getGlobalConfig(),
        TAG_DEF_PREFIX);

    final OutputStream manifestOutputStream =
        outputRepository.createOutputStream("META-INF/manifest.xml", "text/xml");
View Full Code Here

    ClassicEngineBoot.getInstance().start();
    ExpressionQueryTool eqt = new ExpressionQueryTool();
    eqt.processDirectory(null);
    final Class[] classes = eqt.getExpressions();

    final DefaultTagDescription dtd = new DefaultTagDescription();
    dtd.setNamespaceHasCData(META_NAMESPACE, false);

    final XmlWriter writer = new XmlWriter(new PrintWriter(System.out), dtd);

    final AttributeList attrList = new AttributeList();
    attrList.addNamespaceDeclaration("", META_NAMESPACE);
View Full Code Here

    {
      throw new IOException("Unable to generate unique name for cda-Data-Source");
    }
    //TODO: refactor with CdaDataFactoryWriteHandler
    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription =
        new DefaultTagDescription(ClassicEngineBoot.getInstance().getGlobalConfig(), CdaModule.TAG_DEF_PREFIX);
    final XmlWriter xmlWriter = new XmlWriter
        (new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ","\n");

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", CdaModule.NAMESPACE);
View Full Code Here

  public void save(final File file)
  {
    try
    {
      final DefaultTagDescription tags = new DefaultTagDescription();
      tags.setDefaultNamespace(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE);
      tags.setNamespaceHasCData(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, false);
      tags.setElementHasCData(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "attribute", true);

      final XmlWriter w = new XmlWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"), tags);
      w.writeXmlDeclaration("UTF-8");

      final AttributeList rootList = new AttributeList();
View Full Code Here

    private HtmlRenderingSetup(final MasterReport report)
    {
      this.report = report;
      sw = new StringWriter();
      writer = new XmlWriter(sw, new DefaultTagDescription(), "  ", "\n");
      writer.addImpliedNamespace("http://www.w3.org/1999/xhtml", "");
    }
View Full Code Here

    // This print-writer will be flushed, but not closed, as closing the underlying stream is not desired here.
    final PrintWriter writer = new PrintWriter(new OutputStreamWriter(out, encoding));
    final AttributeList attList = new AttributeList();
    attList.addNamespaceDeclaration("", ConfigEditorBoot.NAMESPACE); //$NON-NLS-1$

    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.setDefaultNamespace(ConfigEditorBoot.NAMESPACE);
    tagDescription.setNamespaceHasCData(ConfigEditorBoot.NAMESPACE, false);
    tagDescription.setElementHasCData(ConfigEditorBoot.NAMESPACE, "text", true);
    tagDescription.setElementHasCData(ConfigEditorBoot.NAMESPACE, "description", true);
   
    final XmlWriter dwriter = new XmlWriter(writer, tagDescription);


    dwriter.writeXmlDeclaration(encoding);
View Full Code Here

    this.bundleManifest = bundleManifest;
  }

  public void write(final OutputStream out) throws IOException
  {
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.configure(LibDocBundleBoot.getInstance().getGlobalConfig(), CONFIG_PREFIX);

    final XmlWriter writer = new XmlWriter
        (new OutputStreamWriter(out, "UTF-8"), tagDescription, "  ", "\n");
    writer.setAlwaysAddNamespace(true);
    writer.setWriteFinalLinebreak(true);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.xmlns.writer.DefaultTagDescription

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.