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

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


  public static String writeImageMapAsString(final ImageMap imageMap)
  {
    try
    {
      final DefaultTagDescription tagDescription = new DefaultTagDescription();
      tagDescription.setDefaultNamespace(LibXmlInfo.XHTML_NAMESPACE);
      tagDescription.addDefaultDefinition(LibXmlInfo.XHTML_NAMESPACE, false);
      final StringWriter sbwriter = new StringWriter(5000);
      final XmlWriter writer = new XmlWriter(sbwriter);
      writer.setHtmlCompatiblityMode(true);
      writer.setWriteFinalLinebreak(true);
      writeImageMap(writer, imageMap, 1);
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.configure
        (ConfigEditorBoot.getInstance().getGlobalConfig(), "org.pentaho.reporting.tools.configeditor.writer.");
    final XmlWriter dwriter = new XmlWriter(writer, tagDescription);


    dwriter.writeXmlDeclaration(encoding);
View Full Code Here

  public void save(final File file)
  {
    try
    {
      final DefaultTagDescription tags = new DefaultTagDescription();
      tags.setDefaultNamespace(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE);
      tags.addDefaultDefinition(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, false);
      tags.addTagDefinition(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

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

    final DefaultTagDescription dtd = new DefaultTagDescription();
    dtd.addDefaultDefinition(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

    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(
        ClassicEngineBoot.getInstance().getGlobalConfig(), StaticDataFactoryModule.TAG_DEF_PREFIX);
    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(
        ClassicEngineBoot.getInstance().getGlobalConfig(), StaticDataFactoryModule.TAG_DEF_PREFIX);
    final XmlWriter xmlWriter = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ",
        "\n");
    xmlWriter.writeXmlDeclaration("UTF-8");
View Full Code Here

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

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(contentFileState.getFileName(),
        "text/xml"));
    final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
    final DefaultTagDescription tagDescription = new DefaultTagDescription(globalConfig,
        BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter
        (new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");
View Full Code Here

    {
      throw new NullPointerException();
    }

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry("settings.xml", "text/xml"));
    final DefaultTagDescription tagDescription = new DefaultTagDescription(
        ClassicEngineBoot.getInstance().getGlobalConfig(), BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");

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

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

  public void open() throws IOException
  {
    final DefaultTagDescription td = new DefaultTagDescription();
    td.addDefaultDefinition(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, false);
    td.addTagDefinition(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

    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

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.