Examples of InspectionResult


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

          final String element = elements[j];
          final AbstractReportDefinition reportDefinition = reportRenderContext.getReportDefinition();
          final ReportElement e = reportDefinition.getGroupByName(element);
          if (e == null)
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                Messages.getString("InvalidGroupReferenceInspection.ExpressionInvalidGroup",
                    expression.getName(), element, metaData.getDisplayName(Locale.getDefault())),
                new PropertyLocationInfo(expression, metaData.getName())));
          }
        }
      }
    }
    catch (Exception e)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          e.getMessage(), new LocationInfo(expression)));
    }

  }
View Full Code Here

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

                                final ReportElement element)
  {
    if (element.getMetaData().isDeprecated())
    {
      final String message = element.getMetaData().getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.ElementTypeDeprecated", element.getName(), message),
          new LocationInfo(element)));
    }

    traverseAttributeExpressions(designerContext, reportRenderContext, resultHandler, columnNames, element);
View Full Code Here

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

  {
    final AttributeMetaData attrDescr = element.getMetaData().getAttributeDescription(attributeNamespace, attributeName);
    if (attrDescr != null && attrDescr.isDeprecated())
    {
      final String message = attrDescr.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionTargetDeprecated",
              element.getName(), attrDescr.getDisplayName(Locale.getDefault()), message),
          new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
    }

    if (expressionMetaData == null)
    {
      return;
    }

    if (expressionMetaData.isDeprecated() == false)
    {
      return;
    }
    final String message = expressionMetaData.getDeprecationMessage(Locale.getDefault());
    if (attrDescr != null)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecated",
              element.getName(), attrDescr.getDisplayName(Locale.getDefault()), message),
          new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
    }
    else
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecatedNoMetaData",
              element.getName(), attributeNamespace, attributeName, message),
          new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
    }
View Full Code Here

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

  {
    final StyleMetaData styleDescription = element.getMetaData().getStyleDescription(styleKey);
    if (styleDescription != null && styleDescription.isDeprecated())
    {
      final String message = styleDescription.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionTargetDeprecated",
              element.getName(), styleDescription.getDisplayName(Locale.getDefault()), message),
          new StyleLocationInfo(element, styleKey, true)));
    }

    if (expressionMetaData == null)
    {
      return;
    }

    if (expressionMetaData.isDeprecated() == false)
    {
      return;
    }
    final String message = expressionMetaData.getDeprecationMessage(Locale.getDefault());
    if (styleDescription != null)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecated",
              element.getName(), styleDescription.getDisplayName(Locale.getDefault()), message),
          new StyleLocationInfo(element, styleKey, true)));
    }
    else
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecatedNoMetaData",
              element.getName(), styleKey.getName(), message),
          new StyleLocationInfo(element, styleKey, true)));
    }
  }
View Full Code Here

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

                                   final ExpressionMetaData expressionMetaData)
  {
    if (expressionMetaData != null && expressionMetaData.isDeprecated())
    {
      final String message = expressionMetaData.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.ExpressionDeprecated", expression.getName(), message),
          new LocationInfo(expression)));
    }
  }
View Full Code Here

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

  {
    final DataFactoryMetaData metaData = dataFactory.getMetaData();
    if (metaData.isDeprecated())
    {
      final String message = metaData.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.DataFactoryDeprecated", metaData.getDisplayName(Locale.getDefault()), message),
          new LocationInfo(dataFactory)));
    }
  }
View Full Code Here

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

    if (fontHeight <= Math.max(minHeight, StrictGeomUtility.toExternalValue(effectiveLineHeight)))
    {
      return;
    }

    resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
        Messages.getString("FontSizeInspection.ElementHeightSmallerThanLineSize", element.getName()),
        new StyleLocationInfo(element, ElementStyleKeys.MIN_HEIGHT, false)));

  }
View Full Code Here

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

  {
    final ElementMetaData elementMetaData = element.getMetaData();
    if (elementMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      // warn: ReportMigrationInspection.ElementInvalid
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.ElementInvalid",
              element.getName(), compatibilityText), new LocationInfo(element)));
    }

    for (final AttributeMetaData attributeMetaData : elementMetaData.getAttributeDescriptions())
    {
      if (attributeMetaData.getCompatibilityLevel() > compatibilityLevel)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("ReportMigrationInspection.AttributeInvalid",
                attributeMetaData.getDisplayName(Locale.getDefault()), element.getName(), compatibilityText),
            new AttributeLocationInfo(element, attributeMetaData.getNameSpace(), attributeMetaData.getName(), false)));
      }
    }
View Full Code Here

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

      return;
    }

    if (attributeMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.AttributeExpressionDefined",
              attributeMetaData.getDisplayName(Locale.getDefault()), element.getName(), compatibilityText),
          new AttributeLocationInfo(element, attributeMetaData.getNameSpace(), attributeMetaData.getName(), false)));
    }

    if (expressionMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.AttributeExpressionInvalid",
              attributeMetaData.getDisplayName(Locale.getDefault()), element.getName(), compatibilityText),
          new AttributeLocationInfo(element, attributeMetaData.getNameSpace(), attributeMetaData.getName(), false)));
    }
  }
View Full Code Here

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

      return;
    }

    if (styleMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.StyleExpressionInvalid",
              styleMetaData.getDisplayName(Locale.getDefault()), element.getName(), compatibilityText),
          new StyleLocationInfo(element, styleKey, false)));
    }

    if (expressionMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.StyleExpressionInvalid",
              styleMetaData.getDisplayName(Locale.getDefault()), element.getName(), compatibilityText),
          new StyleLocationInfo(element, styleKey, false)));
    }
  }
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.