Examples of addNamespaceDeclaration()


Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.STYLE);
    rootAttributes.addNamespaceDeclaration("layout", BundleNamespaces.LAYOUT);
    rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);

    writer.writeTag(BundleNamespaces.STYLE, "style", rootAttributes, XmlWriterSupport.OPEN);

    final ReportDefinition report = styleFileState.getReport();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.STYLE);
    rootAttributes.addNamespaceDeclaration("layout", BundleNamespaces.LAYOUT);
    rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);

    writer.writeTag(BundleNamespaces.STYLE, "style", rootAttributes, XmlWriterSupport.OPEN);

    final ReportDefinition report = styleFileState.getReport();
    if (report instanceof MasterReport)
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    final Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, encoding));
    this.xmlWriter = new XmlWriter(writer, td);
    this.xmlWriter.writeXmlDeclaration(null);
    final AttributeList attrs = new AttributeList();
    attrs.addNamespaceDeclaration("", XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE);
    xmlWriter.writeTag(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "layout-output", attrs, XmlWriter.OPEN);
  }

  public void close() throws IOException
  {
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    final DefaultTagDescription tagDescription = new DefaultTagDescription(
        ClassicEngineBoot.getInstance().getGlobalConfig(), SQLDataFactoryModule.TAG_DEF_PREFIX);
    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);
    xmlWriter.close();

    return fileName;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    final DefaultTagDescription tagDescription = new DefaultTagDescription(
        ClassicEngineBoot.getInstance().getGlobalConfig(), CompoundDataFactoryModule.TAG_DEF_PREFIX);
    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);

    for (int i = 0; i < compoundDataFactory.size(); i++)
    {
      final DataFactory df = compoundDataFactory.get(i);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

      final DefaultTagDescription tagDescription = new DefaultTagDescription(
          ClassicEngineBoot.getInstance().getGlobalConfig(), InlineDataFactoryModule.TAG_DEF_PREFIX);
      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);

      final String[] tables = tableDataFactory.getQueryNames();
      for (int i = 0; i < tables.length; i++)
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

          ClassicEngineBoot.getInstance().getGlobalConfig(), WizardCoreModule.TAG_DEF_PREFIX);
      final XmlWriter xmlWriter = new XmlWriter
          (new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");

      final AttributeList rootAttrs = new AttributeList();
      rootAttrs.addNamespaceDeclaration("wizard", WizardCoreModule.NAMESPACE);

      xmlWriter.writeTag(WizardCoreModule.NAMESPACE, "wizard-specification", rootAttrs, XmlWriter.OPEN);

      final RootBandWriterHandler rootBandWriterHandler = new RootBandWriterHandler();
      rootBandWriterHandler.writeReport(bundle, wizardFileState, xmlWriter, specification.getColumnHeader(), "column-header");
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    // prepare anything that might needed to be prepared ..
    final Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream));
    this.xmlWriter = new XmlWriter(writer, td);
    this.xmlWriter.writeXmlDeclaration(null);
    final AttributeList attrs = new AttributeList();
    attrs.addNamespaceDeclaration("", LAYOUT_OUTPUT_NAMESPACE);
    xmlWriter.writeTag(LAYOUT_OUTPUT_NAMESPACE, "layout-output", attrs, XmlWriter.OPEN);
  }

  public void close() throws IOException
  {
View Full Code Here

Examples of org.springframework.ws.soap.SoapHeader.addNamespaceDeclaration()

    }

    @Override
    public void addAddressingHeaders(SoapMessage message, MessageAddressingProperties map) {
        SoapHeader header = message.getSoapHeader();
        header.addNamespaceDeclaration(getNamespacePrefix(), getNamespaceUri());
        // To
        if (map.getTo() != null) {
            SoapHeaderElement to = header.addHeaderElement(getToName());
            to.setText(map.getTo().toString());
            to.setMustUnderstand(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.