Examples of addNamespaceDeclaration()


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

    dtd.addDefaultDefinition(META_NAMESPACE, false);

    final XmlWriter writer = new XmlWriter(new PrintWriter(System.out), dtd);

    final AttributeList attrList = new AttributeList();
    attrList.addNamespaceDeclaration("", META_NAMESPACE);
    writer.writeTag(META_NAMESPACE, "meta-data", attrList, XmlWriter.OPEN);

    for (int i = 0; i < classes.length; i++)
    {
      final Class aClass = classes[i];
View Full Code Here

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

        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();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.DATADEFINITION);

    writer.writeTag(BundleNamespaces.DATADEFINITION, "data-definition", rootAttributes, XmlWriterSupport.OPEN);// NON-NLS

    // write parameters
    writeParameterDefinitions(contentState, writer);
View Full Code Here

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

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

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", StaticDataFactoryModule.NAMESPACE);
    xmlWriter.writeTag(StaticDataFactoryModule.NAMESPACE, "direct-static-datasource", rootAttrs, XmlWriterSupport.OPEN);

    xmlWriter.writeCloseTag();
    xmlWriter.close();
    return fileName;
View Full Code Here

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

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

    final AttributeList rootAttrs = new AttributeList();
    rootAttrs.addNamespaceDeclaration("data", StaticDataFactoryModule.NAMESPACE);
    xmlWriter.writeTag(StaticDataFactoryModule.NAMESPACE, "static-datasource", rootAttrs, XmlWriterSupport.OPEN);

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

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

    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);

    writer.writeTag(BundleNamespaces.CONTENT, "content", rootAttributes, XmlWriterSupport.OPEN);

    writer.writeComment(" The content.xml file remains intentionally empty. This file can be used to ");
    writer.writeComment(" inject global templates later. ");
View Full Code Here

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

        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();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.SETTINGS);

    writer.writeTag(BundleNamespaces.SETTINGS, "settings", rootAttributes, XmlWriterSupport.OPEN);

    writeConfiguration(state, writer);
    writeRuntimeInformation(state, writer);
View Full Code Here

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

          }

          if (xmlWriter.isNamespaceDefined(namespace) == false &&
              attList.isNamespaceUriDefined(namespace) == false)
          {
            attList.addNamespaceDeclaration("autoGenNs", namespace);
          }

          // preserve strings, but discard anything else. Until a attribute has a definition, we cannot
          // hope to understand the attribute's value. String-attributes can be expressed in XML easily,
          // and string is also how all unknown attributes are stored by the parser.
View Full Code Here

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

        }

        if (xmlWriter.isNamespaceDefined(namespace) == false &&
            attList.isNamespaceUriDefined(namespace) == false)
        {
          attList.addNamespaceDeclaration("autoGenNs", namespace);
        }

        try
        {
          final PropertyEditor propertyEditor = attrMeta.getEditor();
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(encoding);
    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()

          }

          if (xmlWriter.isNamespaceDefined(namespace) == false &&
              attList.isNamespaceUriDefined(namespace) == false)
          {
            attList.addNamespaceDeclaration("autoGenNs", namespace);
          }

          // preserve strings, but discard anything else. Until a attribute has a definition, we cannot
          // hope to understand the attribute's value. String-attributes can be expressed in XML easily,
          // and string is also how all unknown attributes are stored by the parser.
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.