Examples of addNamespaceDeclaration()


Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

        {
          final AttributeList attList = new AttributeList();
          if (attList.isNamespaceUriDefined(namespace) == false &&
              writer.isNamespaceDefined(namespace) == false)
          {
            attList.addNamespaceDeclaration("autoGenNS", namespace);
          }

          if (value instanceof URL)
          {
            attList.setAttribute(AttributeNames.Core.NAMESPACE, "resource-type", "url");
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

            final AttributeList attList = new AttributeList();
            if (attList.isNamespaceUriDefined(namespace) == false &&
                writer.isNamespaceDefined(namespace) == false)
            {
              attList.addNamespaceDeclaration("autoGenNS", namespace);
            }
            writer.writeTag(namespace, attrMeta.getName(), attList, XmlWriter.OPEN);
            writer.writeTextNormalized(text, true);
            writer.writeCloseTag();
          }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

            final String attrValue = ConverterRegistry.toAttributeValue(value);
            final AttributeList attList = new AttributeList();
            if (attList.isNamespaceUriDefined(namespace) == false &&
                writer.isNamespaceDefined(namespace) == false)
            {
              attList.addNamespaceDeclaration("autoGenNS", namespace);
            }
            writer.writeTag(namespace, attrMeta.getName(), attList, XmlWriter.OPEN);
            writer.writeTextNormalized(attrValue, true);
            writer.writeCloseTag();
          }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()


    final AttributeList rootAttrs = new AttributeList();
    if (xmlWriter.isNamespaceDefined(StaticDataFactoryModule.NAMESPACE) == false)
    {
      rootAttrs.addNamespaceDeclaration("data", StaticDataFactoryModule.NAMESPACE);
    }
    xmlWriter.writeTag(StaticDataFactoryModule.NAMESPACE, "direct-static-datasource", rootAttrs, XmlWriterSupport.OPEN);

    xmlWriter.writeCloseTag();
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    final NamedStaticDataFactory staticDataFactory = (NamedStaticDataFactory) dataFactory;

    final AttributeList rootAttrs = new AttributeList();
    if (xmlWriter.isNamespaceDefined(StaticDataFactoryModule.NAMESPACE) == false)
    {
      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++)
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    final SimpleSQLReportDataFactory sqlDataFactory = (SimpleSQLReportDataFactory) dataFactory;

    final AttributeList rootAttrs = new AttributeList();
    if (xmlWriter.isNamespaceDefined(SQLDataFactoryModule.NAMESPACE) == false)
    {
      rootAttrs.addNamespaceDeclaration("data", SQLDataFactoryModule.NAMESPACE);
    }
    xmlWriter.writeTag(SQLDataFactoryModule.NAMESPACE, "direct-sql-datasource", rootAttrs, XmlWriterSupport.OPEN);
    xmlWriter.writeTag(SQLDataFactoryModule.NAMESPACE, "config", "label-mapping",
        String.valueOf(sqlDataFactory.isLabelMapping()), XmlWriterSupport.CLOSE);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

        (DriverConnectionProvider) connectionProvider;

    final AttributeList rootAttribs = new AttributeList();
    if (xmlWriter.isNamespaceDefined(SQLDataFactoryModule.NAMESPACE) == false)
    {
      rootAttribs.addNamespaceDeclaration("data", SQLDataFactoryModule.NAMESPACE);
    }

    xmlWriter.writeTag
        (SQLDataFactoryModule.NAMESPACE, "connection", rootAttribs, XmlWriterSupport.OPEN);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    }

    final AttributeList rootAttribs = new AttributeList();
    if (xmlWriter.isNamespaceDefined(SQLDataFactoryModule.NAMESPACE) == false)
    {
      rootAttribs.addNamespaceDeclaration("data", SQLDataFactoryModule.NAMESPACE);
    }

    final JndiConnectionProvider driverProvider =
        (JndiConnectionProvider) connectionProvider;
    xmlWriter.writeTag(SQLDataFactoryModule.NAMESPACE, "jndi", rootAttribs, XmlWriterSupport.OPEN);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

    final SQLReportDataFactory sqlDataFactory = (SQLReportDataFactory) dataFactory;

    final AttributeList rootAttrs = new AttributeList();
    if (xmlWriter.isNamespaceDefined(SQLDataFactoryModule.NAMESPACE) == false)
    {
      rootAttrs.addNamespaceDeclaration("data", SQLDataFactoryModule.NAMESPACE);
    }
    xmlWriter.writeTag(SQLDataFactoryModule.NAMESPACE, "sql-datasource", rootAttrs, XmlWriterSupport.OPEN);
    xmlWriter.writeTag(SQLDataFactoryModule.NAMESPACE, "config", "label-mapping",
        String.valueOf(sqlDataFactory.isLabelMapping()), XmlWriterSupport.CLOSE);
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.addNamespaceDeclaration()

      final XmlWriter w = new XmlWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"), tags);
      w.writeXmlDeclaration("UTF-8");

      final AttributeList rootList = new AttributeList();
      rootList.addNamespaceDeclaration("", DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE);
      w.writeTag(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "drilldown-profiles", rootList, XmlWriter.OPEN);

      final Object[] objects = drillDownProfiles.toArray();
      for (int i = 0; i < objects.length; i++)
      {
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.