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

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


  }

  public void write (final OutputStream outputStream,
                     final ElementStyleDefinition styleDefinition) throws IOException
  {
    final DefaultTagDescription tagDescription = BundleWriterHandlerRegistry.getInstance().createWriterTagDescription();
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(new NoCloseOutputStream(outputStream), "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");

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


                           final TableContentProducer contentProducer)
  {
    final CellBackgroundProducer cellBackgroundProducer = new CellBackgroundProducer(true, true);
    try
    {
      final DefaultTagDescription tagDescription = new DefaultTagDescription();
      tagDescription.setNamespaceHasCData(null, false);
      final XmlWriter writer = new XmlWriter(new OutputStreamWriter(System.out), tagDescription);

      writer.writeComment("Table Layout: ");
      writer.writeComment("Rows: " + sheetLayout.getRowCount());
      writer.writeComment("Columns: " + sheetLayout.getColumnCount());
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

        bundle.removeEntry(wizardFileState.getFileName())
      }
      final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(wizardFileState.getFileName(), "text/xml"));
      bundle.getWriteableDocumentMetaData().setEntryAttribute(wizardFileState.getFileName(), BundleUtilities.STICKY_FLAG, "true");
      bundle.getWriteableDocumentMetaData().setEntryAttribute(wizardFileState.getFileName(), BundleUtilities.HIDDEN_FLAG, "true");
      final DefaultTagDescription tagDescription = new DefaultTagDescription();
      tagDescription.setNamespaceHasCData(WizardCoreModule.NAMESPACE, false);

      final XmlWriter xmlWriter = new XmlWriter
          (new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");

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

    final TrueTypeFontRegistry registry = new TrueTypeFontRegistry();
    final ITextFontRegistry itextRegistry = new ITextFontRegistry();

    registry.initialize();
    itextRegistry.initialize();
    final DefaultTagDescription defaultTagDescription = new DefaultTagDescription();
    defaultTagDescription.setNamespaceHasCData(null, false);
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(new FileOutputStream("/Users/user/fonts.xml"), "UTF-8"), defaultTagDescription);
    writer.writeXmlDeclaration("UTF-8");
    writer.writeTag(null, "font-spec", "fallback-font", "Arial", false);

    final Map<String, FontRecord> records = new HashMap<String, FontRecord>();
View Full Code Here

            throws DataSourceException, ReportProcessingException
    {
        imageNames.reset();
        this.groupContext = new GroupContext(null);

        final DefaultTagDescription tagDescription = createTagDescription();
        try
        {
            final OutputStream outputStream = outputRepository.createOutputStream(target, "text/xml");
            final Writer writer = new OutputStreamWriter(outputStream, "UTF-8");
View Full Code Here

     *
     * @return the tag description library.
     */
    protected DefaultTagDescription createTagDescription()
    {
        final DefaultTagDescription tagDescription = new DefaultTagDescription();
        tagDescription.configure(JFreeReportBoot.getInstance().getGlobalConfig(),
                OfficeDocumentReportTarget.TAG_DEF_PREFIX);
        return tagDescription;
    }
View Full Code Here

  private final XmlWriter xmlWriter;
  private final boolean writeOpeningTag;

  public StylesWriter(final Writer writer)
  {
    final DefaultTagDescription tagDescription = new DefaultTagDescription();
    tagDescription.configure (JFreeReportBoot.getInstance().getGlobalConfig(),
        OfficeDocumentReportTarget.TAG_DEF_PREFIX);

    this.xmlWriter = new XmlWriter(writer, tagDescription);
    this.xmlWriter.setAlwaysAddNamespace(true);
    this.writeOpeningTag = true;
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(PmdDataFactoryModule.NAMESPACE, false);
    tagDescription.setElementHasCData(PmdDataFactoryModule.NAMESPACE, "global-script", true);
    tagDescription.setElementHasCData(PmdDataFactoryModule.NAMESPACE, "script", true);
    tagDescription.setElementHasCData(PmdDataFactoryModule.NAMESPACE, "static-query", true);

    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", PmdDataFactoryModule.NAMESPACE);
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(ScriptableDataFactoryModule.NAMESPACE);
    tagDescription.setNamespaceHasCData(ScriptableDataFactoryModule.NAMESPACE, false);
    tagDescription.setElementHasCData(ScriptableDataFactoryModule.NAMESPACE, "query", true);

    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");

    final AttributeList rootAttrs = new AttributeList();
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.