Package org.pentaho.reporting.libraries.xmlns.common

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList


    if (element instanceof AbstractReportDefinition == false)
    {
      throw new IllegalArgumentException();
    }

    final AttributeList rootAttributes = new AttributeList();
    rootAttributes.addNamespaceDeclaration("", BundleNamespaces.LAYOUT);
    rootAttributes.addNamespaceDeclaration("style", BundleNamespaces.STYLE);
    rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);
    rootAttributes.addNamespaceDeclaration("wizard", AttributeNames.Wizard.NAMESPACE);

    final AttributeList attList = createMainAttributes(element, xmlWriter, rootAttributes);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "layout", attList, XmlWriterSupport.OPEN);

    final AbstractReportDefinition report = (AbstractReportDefinition) element;
    final ReportPreProcessor[] processors = report.getPreProcessors();
    for (int i = 0; i < processors.length; i++)
View Full Code Here


      final Object property = beanUtility.getProperty(key);
      final Class propertyType = beanUtility.getPropertyType(key);
      final String value = beanUtility.getPropertyAsString(key);
      if (value != null && property != null)
      {
        final AttributeList attList = new AttributeList();
        attList.setAttribute(BundleNamespaces.LAYOUT, "name", key);
        if (BeanUtility.isSameType(propertyType, property.getClass()) == false)
        {
          attList.setAttribute(BundleNamespaces.LAYOUT, "class", property.getClass().getName());
        }
        writer.writeTag(BundleNamespaces.LAYOUT, "property", attList, XmlWriterSupport.OPEN);
        writer.writeTextNormalized(value, false);
        writer.writeCloseTag();
      }
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "no-data", XmlWriterSupport.OPEN);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "root-level-content", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    writeChildElements(bundle, state, xmlWriter, (Band) element);
    xmlWriter.writeCloseTag();
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "crosstab-title-footer", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    writeChildElements(bundle, state, xmlWriter, (Band) element);
    xmlWriter.writeCloseTag();
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "details-header", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    writeChildElements(bundle, state, xmlWriter, (Band) element);
    xmlWriter.writeCloseTag();
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "page-header", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    writeChildElements(bundle, state, xmlWriter, (Band) element);
    xmlWriter.writeCloseTag();
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "ellipse", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();

  }
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "group-footer", XmlWriterSupport.OPEN);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "root-level-content", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    writeChildElements(bundle, state, xmlWriter, (Band) element);
    xmlWriter.writeCloseTag();
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "number-field", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();

  }
View Full Code Here

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "horizontal-line", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();

  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.xmlns.common.AttributeList

Copyright © 2018 www.massapicom. 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.