Package org.pentaho.reporting.engine.classic.core.metadata

Examples of org.pentaho.reporting.engine.classic.core.metadata.ExpressionRegistry


      throw new NullPointerException();
    }


    final ExpressionCollection exp = state.getReport().getExpressions();
    final ExpressionRegistry registry = ExpressionRegistry.getInstance();
    for (int i = 0; i < exp.size(); i++)
    {
      final Expression expression = exp.getExpression(i);
      if (registry.isExpressionRegistered(expression.getClass().getName()) == false)
      {
        continue;
      }

      final ExpressionMetaData emd =
          registry.getExpressionMetaData(expression.getClass().getName());
      if (emd.isGlobalLayoutProcessor())
      {
        writeExpression(bundle, state, expression, writer, BundleNamespaces.LAYOUT, "expression");// NON-NLS
      }
    }
View Full Code Here


      throw new NullPointerException();
    }


    final ExpressionCollection exp = state.getReport().getExpressions();
    final ExpressionRegistry registry = ExpressionRegistry.getInstance();
    for (int i = 0; i < exp.size(); i++)
    {
      final Expression expression = exp.getExpression(i);
      if (registry.isExpressionRegistered(expression.getClass().getName()) == false)
      {
        continue;
      }

      final ExpressionMetaData emd =
          registry.getExpressionMetaData(expression.getClass().getName());
      if (emd.isGlobalLayoutProcessor() || emd.isElementLayoutProcessor())
      {
        continue;
      }
View Full Code Here

    private SelectChartExpressionAction(final Class expressionType)
    {
      this.expressionType = expressionType;

      final ExpressionRegistry expressionRegistry = ExpressionRegistry.getInstance();
      final ExpressionMetaData metaData = expressionRegistry.getExpressionMetaData(expressionType.getName());
      putValue(Action.NAME, metaData.getMetaAttribute("short-name", Locale.getDefault())); // NON-NLS

      final String defaultIcon = metaData.getMetaAttribute("icon", Locale.getDefault()); // NON-NLS
      if (defaultIcon != null)
      {
View Full Code Here

    ClassicEngineBoot.getInstance().start();
    int invalidExpressionsCounter = 0;
    int deprecatedExpressionsCounter = 0;
    final HashNMap expressionsByGroup = new HashNMap();

    ExpressionRegistry expressionRegistry = ExpressionRegistry.getInstance();
    final ExpressionMetaData[] allExpressions = expressionRegistry.getAllExpressionMetaDatas();
    for (int i = 0; i < allExpressions.length; i++)
    {
      final ExpressionMetaData expression = allExpressions[i];
      if (expression == null)
      {
View Full Code Here

  public static void main(final String[] args) throws IOException
  {
    ClassicEngineBoot.getInstance().start();

    final ExpressionRegistry expressionRegistry = ExpressionRegistry.getInstance();
    final ExpressionMetaData[] allExpressions = expressionRegistry.getAllExpressionMetaDatas();
    for (int i = 0; i < allExpressions.length; i++)
    {
      final ExpressionMetaData expression = allExpressions[i];
      if (expression == null)
      {
View Full Code Here

    private SelectChartExpressionAction(final Class expressionType)
    {
      this.expressionType = expressionType;

      final ExpressionRegistry expressionRegistry = ExpressionRegistry.getInstance();
      final ExpressionMetaData metaData = expressionRegistry.getExpressionMetaData(expressionType.getName());
      putValue(Action.NAME, metaData.getMetaAttribute("short-name", Locale.getDefault())); // NON-NLS

      final String defaultIcon = metaData.getMetaAttribute("icon", Locale.getDefault()); // NON-NLS
      final URL defaultIconUrl = LegacyChartEditorDialog.class.getResource(defaultIcon);
      if (defaultIconUrl != null)
View Full Code Here

      final FormulaExpression fx = (FormulaExpression) value;
      setText(fx.getFormula());
    }
    else if (value != null)
    {
      final ExpressionRegistry registry = ExpressionRegistry.getInstance();
      final String expressionName = value.getClass().getName();
      if (registry.isExpressionRegistered(expressionName))
      {
        final ExpressionMetaData data =
            registry.getExpressionMetaData(expressionName);
        setText(data.getDisplayName(Locale.getDefault()));
        if (data.isDeprecated())
        {
          setToolTipText(data.getDeprecationMessage(Locale.getDefault()));
        }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.metadata.ExpressionRegistry

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.