Package org.pentaho.reporting.designer.core.inspections

Examples of org.pentaho.reporting.designer.core.inspections.ParameterLocationInfo


    {
      final DefaultListParameter listParameter = (DefaultListParameter) parameter;
      final String query = listParameter.getQueryName();
      if (query == null)
      {
        final ParameterLocationInfo queryLocation = new ParameterLocationInfo(parameter);
        resultHandler.notifyInspectionResult
            (new InspectionResult(this, InspectionResult.Severity.HINT,
                Messages.getString("InvalidQueryNameReferenceInspection.QueryUndefined"),
                queryLocation));

      }
      else
      {
        if (isQueryExecutable(reportRenderContext.getReportDefinition(), query) == false)
        {
          final ParameterLocationInfo queryLocation = new ParameterLocationInfo(parameter);
          resultHandler.notifyInspectionResult
              (new InspectionResult(this, InspectionResult.Severity.ERROR,
                  Messages.getString("InvalidQueryNameReferenceInspection.QueryNotRecognized", query),
                  queryLocation));
        }
View Full Code Here


      if (reservedParameterNames.contains(definitionEntry.getName()))
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getInstance().formatMessage
                ("ReservedParameterNamesInspection.ReservedParameterNameUsed", definitionEntry.getName()),
            new ParameterLocationInfo(definitionEntry)));
      }
    }
  }
View Full Code Here

      if (reservedParameterNames.contains(definitionEntry.getName()))
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getInstance().formatMessage
                ("ReservedParameterNamesInspection.ReservedParameterNameUsed", definitionEntry.getName()),
            new ParameterLocationInfo(definitionEntry)));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.inspections.ParameterLocationInfo

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.