Package net.sf.jasperreports.engine.util.JRProperties

Examples of net.sf.jasperreports.engine.util.JRProperties.PropertySuffix


      String xmlnsPrefix = JaxenXPathQueryExecuterFactory.XML_NAMESPACE_PREFIX;
        List nsProperties = JRProperties.getProperties(dataset, xmlnsPrefix);
       
        for (int i=0; i < nsProperties.size(); ++i)
        {
            PropertySuffix prop = (PropertySuffix)nsProperties.get(i);
            String nsPrefix = prop.getKey().substring(xmlnsPrefix.length());
            if (nsPrefix.length() > 0)
            {
              namespaces.put(nsPrefix, prop.getValue());
            }
        }
   
        return namespaces.size()>0 ? namespaces : null;
  }
View Full Code Here


    {
      filter = (filter == null ? new JROriginExporterFilter(): filter);
       
      for(Iterator it = properties.iterator(); it.hasNext();)
      {
        PropertySuffix propertySuffix = (PropertySuffix)it.next();
        String suffix = propertySuffix.getSuffix();
        BandTypeEnum bandType =
          BandTypeEnum.getByName(
            JRProperties.getProperty(propertiesMap, propertySuffix.getKey())
            );
        if (bandType != null)
        {
          filter.addOrigin(
            new JROrigin(
View Full Code Here

      String xmlnsPrefix = XalanXPathQueryExecuterFactory.XML_NAMESPACE_PREFIX;
        List nsProperties = JRProperties.getProperties(dataset, xmlnsPrefix);
       
        for (int i=0; i < nsProperties.size(); ++i)
        {
            PropertySuffix prop = (PropertySuffix)nsProperties.get(i);
            String nsPrefix = prop.getKey().substring(xmlnsPrefix.length());
            if (nsPrefix.length() > 0)
            {
              namespaces.put(nsPrefix, prop.getValue());
            }
        }
   
        return namespaces.size()>0 ? namespaces : null;
  }
View Full Code Here

          String propertiesPrefix = JRXlsQueryExecuterFactory.XLS_COLUMN_NAMES;
          List properties = JRProperties.getAllProperties(dataset, propertiesPrefix);
          if (properties != null && !properties.isEmpty()) {
            columnNamesList = new ArrayList();
            for(int i = 0; i < properties.size(); i++) {
              PropertySuffix property = (PropertySuffix)properties.get(i);
              columnNamesList.add(property.getValue());
            }
          } else {
            JRField[] fields = dataset.getFields();
            if (fields != null && fields.length > 0)
            {
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.util.JRProperties.PropertySuffix

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.