Package org.pentaho.reporting.libraries.xmlns.writer

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


      {
        final String tableName = tables[i];
        final TableModel tableModel = tableDataFactory.queryData(tableName, null);

        xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "inline-table", "name", tableName, XmlWriterSupport.OPEN);
        xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "definition", XmlWriterSupport.OPEN);

        final Class[] colTypes = new Class[tableModel.getColumnCount()];
        for (int col = 0; col < tableModel.getColumnCount(); col += 1)
        {
          final AttributeList colAttrs = new AttributeList();
View Full Code Here


          {
            colAttrs.setAttribute(InlineDataFactoryModule.NAMESPACE, "type", columnClass.getName());
            colTypes[col] = columnClass;
          }

          xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "column", colAttrs, XmlWriterSupport.CLOSE);
        }
        xmlWriter.writeCloseTag(); // definition

        for (int row = 0; row < tableModel.getRowCount(); row += 1)
        {
View Full Code Here

        }
        xmlWriter.writeCloseTag(); // definition

        for (int row = 0; row < tableModel.getRowCount(); row += 1)
        {
          xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "row", XmlWriterSupport.OPEN);
          for (int col = 0; col < tableModel.getColumnCount(); col += 1)
          {
            final AttributeList colAttrs = new AttributeList();
            final Object value = tableModel.getValueAt(row, col);
            if (value == null)
View Full Code Here

            final AttributeList colAttrs = new AttributeList();
            final Object value = tableModel.getValueAt(row, col);
            if (value == null)
            {
              colAttrs.setAttribute(InlineDataFactoryModule.NAMESPACE, "null", "true");
              xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "data", colAttrs, XmlWriterSupport.CLOSE);
            }
            else
            {
              final Class valueClass = value.getClass();
              if (ObjectUtilities.equal(colTypes[col], valueClass) == false)
View Full Code Here

              }

              try
              {
                final String s = ConverterRegistry.toAttributeValue(value);
                xmlWriter.writeTag(InlineDataFactoryModule.NAMESPACE, "data", colAttrs, XmlWriterSupport.OPEN);
                xmlWriter.writeTextNormalized(s, true);
                xmlWriter.writeCloseTag();

              }
              catch (BeanException e)
View Full Code Here

          (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");
      rootBandWriterHandler.writeReport(bundle, wizardFileState, xmlWriter, specification.getColumnFooter(), "column-footer");
View Full Code Here

      final RootBandWriterHandler rootBandWriterHandler = new RootBandWriterHandler();
      rootBandWriterHandler.writeReport(bundle, wizardFileState, xmlWriter, specification.getColumnHeader(), "column-header");
      rootBandWriterHandler.writeReport(bundle, wizardFileState, xmlWriter, specification.getColumnFooter(), "column-footer");


      xmlWriter.writeTag(WizardCoreModule.NAMESPACE, "detail-fields", XmlWriter.OPEN);
      final DetailFieldDefinition[] detailFieldDefinitions = specification.getDetailFieldDefinitions();
      final DetailFieldDefinitionWriteHandler detailWriteHandler = new DetailFieldDefinitionWriteHandler();
      for (int i = 0; i < detailFieldDefinitions.length; i++)
      {
        final DetailFieldDefinition definition = detailFieldDefinitions[i];
View Full Code Here

        final DetailFieldDefinition definition = detailFieldDefinitions[i];
        detailWriteHandler.writeReport(bundle, wizardFileState, xmlWriter, definition);
      }
      xmlWriter.writeCloseTag();

      xmlWriter.writeTag(WizardCoreModule.NAMESPACE, "group-definitions", XmlWriter.OPEN);
      final GroupDefinition[] groupDefinitions = specification.getGroupDefinitions();
      final GroupDefinitionWriteHandler groupDefinitionWriteHandler = new GroupDefinitionWriteHandler();
      for (int i = 0; i < groupDefinitions.length; i++)
      {
        final GroupDefinition definition = groupDefinitions[i];
View Full Code Here

    rootAttributes.addNamespaceDeclaration("expressions", MetaAttributeNames.Expressions.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("formatting", MetaAttributeNames.Formatting.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("numeric", MetaAttributeNames.Numeric.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("style", MetaAttributeNames.Style.NAMESPACE);

    writer.writeTag(ClassicEngineBoot.DATASCHEMA_NAMESPACE, "data-schema", rootAttributes, XmlWriterSupport.OPEN);

    final DataSchemaRule[] globalRules = definition.getGlobalRules();
    final DataSchemaRule[] indirectRules = definition.getIndirectRules();
    final DataSchemaRule[] directRules = definition.getDirectRules();
    try
View Full Code Here

      for (int i = 0; i < globalRules.length; i++)
      {
        final DataSchemaRule rule = globalRules[i];
        if (rule instanceof GlobalRule)
        {
          writer.writeTag(ClassicEngineBoot.DATASCHEMA_NAMESPACE, "global-mapping", XmlWriterSupport.OPEN);
          writeAttributes(writer, rule.getStaticAttributes());
          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.