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

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


    if (out == null)
    {
      throw new NullPointerException();
    }

    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.configure(LibDocBundleBoot.getInstance().getGlobalConfig(), TAGDEF_CONFIG_PREFIX);

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


    this.ignoreEmptyBorders = true;
  }

  public void open() throws IOException
  {
    final DefaultTagDescription td = new DefaultTagDescription();
    td.setNamespaceHasCData(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, false);
    td.setElementHasCData(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "text", true);

    // prepare anything that might needed to be prepared ..
    final String encoding = metaData.getConfiguration().getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.xml.Encoding",
            EncodingRegistry.getPlatformDefaultEncoding());
View Full Code Here

    writer.write();
  }

  private TagDescription createTagDescription()
  {
    final DefaultTagDescription defaultTagDescription = new DefaultTagDescription();
    defaultTagDescription.configure
        (ClassicEngineBoot.getInstance().getGlobalConfig(),
            "org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.");
    return defaultTagDescription;
  }
View Full Code Here

    final BundleWriterState contentFileState = new BundleWriterState(state, "content.xml");

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(contentFileState.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.CONTENT);
View Full Code Here

    {
      throw new NullPointerException();
    }

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry("settings.xml", "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.SETTINGS);
View Full Code Here

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

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
   
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.setNamespaceHasCData(SQLDataFactoryModule.NAMESPACE, false);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "driver", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "password", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "path", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "property", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "static-query", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "script", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "global-script", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "url", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "username", true);

    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");
    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", SQLDataFactoryModule.NAMESPACE);
View Full Code Here

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

    final OutputStream outputStream = bundle.createEntry(fileName, "text/xml");
   
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.setNamespaceHasCData(SQLDataFactoryModule.NAMESPACE, false);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "driver", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "password", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "path", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "property", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "static-query", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "script", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "global-script", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "url", true);
    tagDescription.setElementHasCData(SQLDataFactoryModule.NAMESPACE, "username", true);

    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");
    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", SQLDataFactoryModule.NAMESPACE);
View Full Code Here

    this.pointIntConverter = new FastDecimalFormat("0", Locale.US);
  }

  public void open() throws IOException
  {
    final DefaultTagDescription td = new DefaultTagDescription();
    td.setNamespaceHasCData(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, false);
    td.setElementHasCData(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "text", true);

    // prepare anything that might needed to be prepared ..
    final String encoding = metaData.getConfiguration().getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.xml.Encoding",
            EncodingRegistry.getPlatformDefaultEncoding());
View Full Code Here

    this.xmlWriter = xmlWriter;
  }

  private static DefaultTagDescription createTagDefinitions()
  {
    final DefaultTagDescription td = new DefaultTagDescription();
    td.setDefaultNamespace(XHTML_NAMESPACE);
    td.setNamespaceHasCData(XHTML_NAMESPACE, true);
    td.setNamespaceHasCData(XHTML_NAMESPACE, true);
    td.setElementHasCData(XHTML_NAMESPACE, "body", false);
    td.setElementHasCData(XHTML_NAMESPACE, "br", true);
    td.setElementHasCData(XHTML_NAMESPACE, "col", false);
    td.setElementHasCData(XHTML_NAMESPACE, "colgroup", false);
    td.setElementHasCData(XHTML_NAMESPACE, "div", true);
    td.setElementHasCData(XHTML_NAMESPACE, "head", false);
    td.setElementHasCData(XHTML_NAMESPACE, "html", false);
    td.setElementHasCData(XHTML_NAMESPACE, "img", true);
    td.setElementHasCData(XHTML_NAMESPACE, "input", true);
    td.setElementHasCData(XHTML_NAMESPACE, "meta", true);
    td.setElementHasCData(XHTML_NAMESPACE, "p", true);
    td.setElementHasCData(XHTML_NAMESPACE, "pre", true);
    td.setElementHasCData(XHTML_NAMESPACE, "span", true);
    td.setElementHasCData(XHTML_NAMESPACE, "style", false);
    td.setElementHasCData(XHTML_NAMESPACE, "table", false);
    td.setElementHasCData(XHTML_NAMESPACE, "tbody", false);
    td.setElementHasCData(XHTML_NAMESPACE, "td", true);
    td.setElementHasCData(XHTML_NAMESPACE, "tfoot", false);
    td.setElementHasCData(XHTML_NAMESPACE, "th", false);
    td.setElementHasCData(XHTML_NAMESPACE, "thead", false);
    td.setElementHasCData(XHTML_NAMESPACE, "title", true);
    td.setElementHasCData(XHTML_NAMESPACE, "tr", false);
    return td;
  }
View Full Code Here

    }

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

      final XmlWriter xmlWriter = new XmlWriter
          (new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
      final AttributeList rootAttrs = new AttributeList();
      rootAttrs.addNamespaceDeclaration("data", SequenceDataFactoryModule.NAMESPACE);
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.