Examples of writeTag()


Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

    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.writer.XmlWriter.writeTag()

      expressionAttrList.setAttribute(META_NAMESPACE, "bundle-name", "org.pentaho.reporting.engine.classic.core.metadata.messages");
      expressionAttrList.setAttribute(META_NAMESPACE, "result", "java.lang.Object");
      expressionAttrList.setAttribute(META_NAMESPACE, "expert", "false");
      expressionAttrList.setAttribute(META_NAMESPACE, "hidden", "false");
      expressionAttrList.setAttribute(META_NAMESPACE, "preferred", "false");
      writer.writeTag(META_NAMESPACE, "expression", expressionAttrList, XmlWriter.OPEN);

      final BeanInfo beanInfo = Introspector.getBeanInfo(aClass);
      final PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors();
      for (int j = 0; j < descriptors.length; j++)
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

          {
            propAttrList.setAttribute(META_NAMESPACE, "expert", "false");
          }
        }
        propAttrList.setAttribute(META_NAMESPACE, "hidden", "false");
        writer.writeTag(META_NAMESPACE, "property", propAttrList, XmlWriter.CLOSE);

      }

      writer.writeCloseTag();
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

        "\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.writer.XmlWriter.writeTag()

        "\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++)
    {
      final String queryName = queryNames[i];
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

    final String[] queryNames = staticDataFactory.getQueryNames();
    for (int i = 0; i < queryNames.length; i++)
    {
      final String queryName = queryNames[i];
      final String query = staticDataFactory.getQuery(queryName);
      xmlWriter.writeTag(StaticDataFactoryModule.NAMESPACE, "query", "name", queryName, XmlWriterSupport.OPEN);
      xmlWriter.writeTextNormalized(query, false);
      xmlWriter.writeCloseTag();
    }
    xmlWriter.writeCloseTag();
    xmlWriter.close();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

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

    writer.writeCloseTag();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

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

    writer.writeCloseTag();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

   */
  public void write()
      throws IOException, ReportWriterException
  {
    final XmlWriter writer = getXmlWriter();
    writer.writeTag(ExtParserModule.NAMESPACE, ReportDescriptionWriter.REPORT_DESCRIPTION_TAG, XmlWriterSupport.OPEN);

    writeRootBand(ReportDescriptionWriter.REPORT_HEADER_TAG, getReport().getReportHeader());
    writeRootBand(ReportDescriptionWriter.REPORT_FOOTER_TAG, getReport().getReportFooter());
    writeRootBand(ReportDescriptionWriter.PAGE_HEADER_TAG, getReport().getPageHeader());
    writeRootBand(ReportDescriptionWriter.PAGE_FOOTER_TAG, getReport().getPageFooter());
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.writer.XmlWriter.writeTag()

  {
    final XmlWriter writer = getXmlWriter();
    if (band.getName().startsWith(Band.ANONYMOUS_BAND_PREFIX) ||
        band.getName().startsWith(Element.ANONYMOUS_ELEMENT_PREFIX))
    {
      writer.writeTag(ExtParserModule.NAMESPACE, tagName, XmlWriterSupport.OPEN);
    }
    else
    {
      writer.writeTag(ExtParserModule.NAMESPACE, tagName,
          "name", band.getName(), XmlWriterSupport.OPEN);
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.