Examples of writeTag()


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

      final String name = (String) keys.next();
      final Object value = reportProperties.get(name);

      if (value == null)
      {
        writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.PROPERTY_REF_TAG, "name", name,
            XmlWriterSupport.CLOSE);
      }
      else
      {
        String svalue = null;
View Full Code Here

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

          FunctionsWriter.logger.warn(
              "Unable to convert the given property value into a simple bean for property '" + name + '\'');
        }
        if (svalue == null)
        {
          writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.PROPERTY_REF_TAG, "name", name,
              XmlWriterSupport.CLOSE);
        }
        else
        {
          final AttributeList properties = new AttributeList();
View Full Code Here

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

        {
          final AttributeList properties = new AttributeList();
          properties.setAttribute(ExtParserModule.NAMESPACE, "name", name);
          properties.setAttribute(ExtParserModule.NAMESPACE, "class", value.getClass().getName());

          writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.PROPERTY_REF_TAG, properties,
              XmlWriterSupport.OPEN);
          writer.writeTextNormalized(svalue, false);
          writer.writeCloseTag();
        }
      }
View Full Code Here

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

    }

    final XmlWriter writer = getXmlWriter();
    if (ObjectWriter.isBasicObject(parameterNames, parameterDescription))
    {
      writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.BASIC_OBJECT_TAG, p,
          XmlWriterSupport.OPEN);
      final String valueString = (String) parameterDescription.getParameter("value");
      writer.writeTextNormalized(valueString, false);
      writer.writeCloseTag();
    }
View Full Code Here

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

      writer.writeTextNormalized(valueString, false);
      writer.writeCloseTag();
    }
    else
    {
      writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.COMPOUND_OBJECT_TAG, p,
          XmlWriterSupport.OPEN);

      final ObjectWriter objWriter = new ObjectWriter(getReportWriter(), parameterValue,
          parameterDescription, writer);
      objWriter.write();
View Full Code Here

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

   */
  public void write()
      throws IOException, ReportWriterException
  {
    final XmlWriter xmlWriter = getXmlWriter();
    xmlWriter.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.REPORT_CONFIG_TAG, XmlWriterSupport.OPEN);

    final AbstractReportDefinition report = getReport();
    if (report instanceof MasterReport)
    {
      final MasterReport masterReport = (MasterReport) report;
View Full Code Here

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

    final XmlWriter writer = getXmlWriter();
    final Enumeration properties = config.getConfigProperties();

    if (properties.hasMoreElements())
    {
      writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.CONFIGURATION_TAG, XmlWriterSupport.OPEN);
      while (properties.hasMoreElements())
      {
        final String key = (String) properties.nextElement();
        final String value = config.getConfigProperty(key);
        if (value != null)
View Full Code Here

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

      {
        final String key = (String) properties.nextElement();
        final String value = config.getConfigProperty(key);
        if (value != null)
        {
          writer.writeTag(ExtParserModule.NAMESPACE, "property", "name", key, XmlWriterSupport.OPEN);
          writer.writeTextNormalized(value, false);
          writer.writeCloseTag();
        }
      }
      writer.writeCloseTag();
View Full Code Here

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

      final AttributeList attr = new AttributeList();
      attr.setAttribute(ExtParserModule.NAMESPACE, "width",
          String.valueOf(spdef.getPageCountHorizontal()));
      attr.setAttribute(ExtParserModule.NAMESPACE, "height",
          String.valueOf(spdef.getPageCountVertical()));
      xmlWriter.writeTag(ExtParserModule.NAMESPACE,
          ReportConfigWriter.SIMPLE_PAGE_DEFINITION_TAG, attr, XmlWriterSupport.OPEN);

      final AttributeList attributes = buildPageFormatProperties(spdef.getPageFormat(0));
      xmlWriter.writeTag(ExtParserModule.NAMESPACE,
          ReportConfigWriter.PAGE_TAG, attributes, XmlWriterSupport.CLOSE);
View Full Code Here

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

          String.valueOf(spdef.getPageCountVertical()));
      xmlWriter.writeTag(ExtParserModule.NAMESPACE,
          ReportConfigWriter.SIMPLE_PAGE_DEFINITION_TAG, attr, XmlWriterSupport.OPEN);

      final AttributeList attributes = buildPageFormatProperties(spdef.getPageFormat(0));
      xmlWriter.writeTag(ExtParserModule.NAMESPACE,
          ReportConfigWriter.PAGE_TAG, attributes, XmlWriterSupport.CLOSE);
      xmlWriter.writeCloseTag();
    }
    else
    {
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.