Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRDatasetParameter


    {
      xmlLoader.addError(new JRValidationException("Unknown sub dataset " + datasetRun.getDatasetName(), datasetRun));
    }
    else
    {
      JRDatasetParameter runParameter = (JRDatasetParameter) digester.peek();
      JRParameter param = (JRParameter) dataset.getParametersMap().get(runParameter.getName());
     
      if (param == null)
      {
        xmlLoader.addError(new JRValidationException("Unknown parameter " + runParameter.getName() + " in sub dataset " + datasetRun.getDatasetName(), runParameter));
      }
      else
      {
        valueClassName = param.getValueClassName();
      }
View Full Code Here


    else
    {
      this.parameters = new JRSubreportParameter[datasetParameters.length];
      for (int i = 0; i < datasetParameters.length; i++)
      {
        JRDatasetParameter datasetParameter = datasetParameters[i];
        TableSubreportParameter subreportParameter =
          new TableSubreportParameter(datasetParameter);
        this.parameters[i] = subreportParameter;
      }
    }
View Full Code Here

   * @param parameterName the parameter name
   * @return the removed parameter value
   */
  public JRDatasetParameter removeParameter(String parameterName)
  {
    JRDatasetParameter param = (JRDatasetParameter) parametersMap.remove(parameterName);
    if (param != null)
    {
      int idx = parametersList.indexOf(param);
      if (idx >= 0)
      {
View Full Code Here

    {
      clone.parametersList = new ArrayList(parametersList.size());
      clone.parametersMap = new HashMap(parametersList.size());
      for(int i = 0; i < parametersList.size(); i++)
      {
        JRDatasetParameter parameter =
          (JRDatasetParameter)((JRDatasetParameter)parametersList.get(i)).clone();
        clone.parametersList.add(parameter);
        clone.parametersMap.put(parameter.getName(), parameter);
      }
    }
   
    return clone;
  }
View Full Code Here

    JRDatasetParameter[] parameters = datasetRun.getParameters();
    if (parameters != null && parameters.length > 0)
    {
      for(int index = 0; index < parameters.length; index++)
      {
        JRDatasetParameter parameter = parameters[index];

        String paramName = parameter.getName();
        if (paramName == null || paramName.trim().length() == 0)
        {
          addBrokenRule("Dataset " + datasetName + " parameter name missing.", parameter);
        }

        JRParameter datasetParam = null;
        if (dataset != null)
        {
          datasetParam = (JRParameter) dataset.getParametersMap().get(paramName);

          if (datasetParam == null)
          {
            addBrokenRule("Unknown parameter " + paramName + " in dataset " + datasetName + ".", parameter);
          }
        }

        JRExpression expression = parameter.getExpression();

        if (expression != null)
        {
          try
          {
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRDatasetParameter

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.