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

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


    if (fileName == null)
    {
      throw new IOException("Unable to generate unique name for the direct Static-Data-Source");
    }
    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.setNamespaceHasCData(StaticDataFactoryModule.NAMESPACE, false);
   
    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");
    xmlWriter.writeXmlDeclaration("UTF-8");
View Full Code Here


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

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.setNamespaceHasCData(StaticDataFactoryModule.NAMESPACE, false);
    tagDescription.setElementHasCData(StaticDataFactoryModule.NAMESPACE, "query", true);

    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");
    xmlWriter.writeXmlDeclaration("UTF-8");
View Full Code Here

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

      final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
      final DefaultTagDescription tagDescription = new DefaultTagDescription();
      tagDescription.setNamespaceHasCData(InlineDataFactoryModule.NAMESPACE, false);
      tagDescription.setElementHasCData(InlineDataFactoryModule.NAMESPACE, "data", true);
      final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
          "\n");
      final AttributeList rootAttrs = new AttributeList();
      rootAttrs.addNamespaceDeclaration("data", InlineDataFactoryModule.NAMESPACE);
      xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "inline-datasource", rootAttrs, XmlWriterSupport.OPEN);
View Full Code Here

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

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.setDefaultNamespace(CompoundDataFactoryModule.NAMESPACE);
    tagDescription.setNamespaceHasCData(CompoundDataFactoryModule.NAMESPACE, false);
    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");
    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", CompoundDataFactoryModule.NAMESPACE);
    xmlWriter.writeTag(CompoundDataFactoryModule.NAMESPACE, "compound-datasource", rootAttrs, XmlWriterSupport.OPEN);
View Full Code Here

  private BundleWriterHandlerRegistry()
  {
    masterreportWriteHandlers = new ArrayList<Class<? extends BundleWriterHandler>>();
    subreportWriteHandlers = new ArrayList<Class<? extends BundleWriterHandler>>();
    writerTagDescription = new DefaultTagDescription();
  }
View Full Code Here

  {
  }

  public void write(final IDatabaseConnection[] connections, final OutputStream out) throws IOException
  {
    DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.setDefaultNamespace(ConnectionModule.NAMESPACE);
    tagDescription.setNamespaceHasCData(ConnectionModule.NAMESPACE, false);
    tagDescription.setElementHasCData(ConnectionModule.NAMESPACE, "attribute", true);

    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(out, "UTF-8"), tagDescription);
    writer.writeXmlDeclaration("UTF-8");

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

    final BundleWriterState contentState = new BundleWriterState(state, state.getReport(), "datadefinition.xml");// NON-NLS

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(contentState.getFileName(),
        "text/xml"));
    final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription();
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.DATADEFINITION);
View Full Code Here

    final BundleWriterState styleFileState = new BundleWriterState(state, "styles.xml");

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(styleFileState.getFileName(),
        "text/xml"));
    final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription();
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.STYLE);
View Full Code Here

    final AbstractReportDefinition report = state.getReport();
    final BundleWriterState layoutFileState = new BundleWriterState(state, "layout.xml");
    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(layoutFileState.getFileName(),
        "text/xml"));
    final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription();
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");

    final ReportDefinitionWriteHandler writeHandler = new ReportDefinitionWriteHandler();
    writeHandler.writeElement(bundle, layoutFileState, writer, report);
View Full Code Here

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

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");
    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", ExternalDataFactoryModule.NAMESPACE);
    xmlWriter.writeTag(ExternalDataFactoryModule.NAMESPACE, "external-datasource", rootAttrs, XmlWriterSupport.CLOSE);
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.