Examples of writeTag()


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

        final String[] alts = en.getOptions();
        if (alts != null)
        {
          for (int optCount = 0; optCount < alts.length; optCount++)
          {
            dwriter.writeTag(ConfigEditorBoot.NAMESPACE, "text", XmlWriterSupport.OPEN); //$NON-NLS-1$
            dwriter.writeTextNormalized(alts[optCount], false);
            dwriter.writeCloseTag();
          }
        }
        dwriter.writeCloseTag();
View Full Code Here

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

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

    writeFactory(ParserConfigWriter.OBJECT_FACTORY_TAG,
        filterFactories(getReportWriter().getClassFactoryCollector().getFactories()));
    writeFactory(ParserConfigWriter.ELEMENT_FACTORY_TAG,
        filterFactories(getReportWriter().getElementFactoryCollector().getFactories()));
View Full Code Here

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

      attList.setAttribute(ExtParserModule.NAMESPACE, "query", query);
    }
    attList.setAttribute(ExtParserModule.NAMESPACE,
        "engine-version", ClassicEngineInfo.getInstance().getVersion());

    xmlWriter.writeTag(ExtParserModule.NAMESPACE,
        AbstractXMLDefinitionWriter.REPORT_DEFINITION_TAG, attList, XmlWriterSupport.OPEN);

    final ParserConfigWriter parserConfigWriter =
        new ParserConfigWriter(getReportWriter(), xmlWriter);
    parserConfigWriter.write();
View Full Code Here

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

      throws IOException, ReportWriterException
  {
    if (shouldWriteFunctions())
    {
      final XmlWriter writer = getXmlWriter();
      writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.FUNCTIONS_TAG, XmlWriterSupport.OPEN);

      writePropertyRefs();
      writeExpressions(getReport().getExpressions());

      writer.writeCloseTag();
View Full Code Here

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

      if (expression.getDependencyLevel() > 0)
      {
        properties.setAttribute(ExtParserModule.NAMESPACE, "deplevel", String.valueOf(
            expression.getDependencyLevel()));
      }
      writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.EXPRESSION_TAG, properties, XmlWriterSupport.CLOSE);
      return;
    }

    if (expression instanceof FormulaFunction)
    {
View Full Code Here

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

      if (expression.getDependencyLevel() > 0)
      {
        properties.setAttribute(ExtParserModule.NAMESPACE, "deplevel", String.valueOf(
            expression.getDependencyLevel()));
      }
      writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.EXPRESSION_TAG, properties, XmlWriterSupport.CLOSE);
      return;
    }

    try
    {
View Full Code Here

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

        if (expression.getDependencyLevel() > 0)
        {
          properties.setAttribute(ExtParserModule.NAMESPACE, "deplevel", String.valueOf(
              expression.getDependencyLevel()));
        }
        writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.EXPRESSION_TAG, properties, XmlWriterSupport.CLOSE);
      }
      else
      {
        final AttributeList properties = new AttributeList();
        if (expression.getName() != null)
View Full Code Here

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

        if (expression.getDependencyLevel() > 0)
        {
          properties.setAttribute(ExtParserModule.NAMESPACE, "deplevel", String.valueOf(
              expression.getDependencyLevel()));
        }
        writer.writeTag(ExtParserModule.NAMESPACE, FunctionsWriter.EXPRESSION_TAG, properties, XmlWriterSupport.OPEN);

        writeExpressionParameters(propertyNames, bu);

        writer.writeCloseTag();
      }
View Full Code Here

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

      (final String[] propertyNames,
       final BeanUtility beanUtility)
      throws IOException, BeanException
  {
    final XmlWriter writer = getXmlWriter();
    writer.writeTag(ExtParserModule.NAMESPACE, AbstractXMLDefinitionWriter.PROPERTIES_TAG, XmlWriterSupport.OPEN);

    for (int i = 0; i < propertyNames.length; i++)
    {
      final String key = propertyNames[i];
      // filter some of the standard properties. These are system-properties
View Full Code Here

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

        attList.setAttribute(ExtParserModule.NAMESPACE, "name", key);
        if (BeanUtility.isSameType(propertyType, property.getClass()) == false)
        {
          attList.setAttribute(ExtParserModule.NAMESPACE, "class", property.getClass().getName());
        }
        writer.writeTag(ExtParserModule.NAMESPACE, "property", attList, XmlWriterSupport.OPEN);
        writer.writeTextNormalized(value, false);
        writer.writeCloseTag();
      }
    }
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.