Package org.springframework.binding.expression

Examples of org.springframework.binding.expression.ExpressionParser.parseExpression()


      value = input.getValue();
    } else {
      value = "flowScope." + name;
    }
    Expression source = parser.parseExpression(name, new FluentParserContext().evaluate(MutableAttributeMap.class));
    Expression target = parser.parseExpression(value, new FluentParserContext().evaluate(RequestContext.class));
    DefaultMapping mapping = new DefaultMapping(source, target);
    parseAndSetMappingConversionExecutor(input, mapping);
    parseAndSetMappingRequired(input, mapping);
    return mapping;
  }
View Full Code Here


    if (StringUtils.hasText(input.getValue())) {
      value = input.getValue();
    } else {
      value = name;
    }
    Expression source = parser.parseExpression(value, new FluentParserContext().evaluate(RequestContext.class));
    Expression target = parser.parseExpression(name, new FluentParserContext().evaluate(MutableAttributeMap.class));
    DefaultMapping mapping = new DefaultMapping(source, target);
    parseAndSetMappingConversionExecutor(input, mapping);
    parseAndSetMappingRequired(input, mapping);
    return mapping;
View Full Code Here

      value = input.getValue();
    } else {
      value = name;
    }
    Expression source = parser.parseExpression(value, new FluentParserContext().evaluate(RequestContext.class));
    Expression target = parser.parseExpression(name, new FluentParserContext().evaluate(MutableAttributeMap.class));
    DefaultMapping mapping = new DefaultMapping(source, target);
    parseAndSetMappingConversionExecutor(input, mapping);
    parseAndSetMappingRequired(input, mapping);
    return mapping;
  }
View Full Code Here

    if (StringUtils.hasText(output.getValue())) {
      value = output.getValue();
    } else {
      value = name;
    }
    Expression source = parser.parseExpression(value, new FluentParserContext().evaluate(RequestContext.class));
    Expression target = parser.parseExpression(name, new FluentParserContext().evaluate(MutableAttributeMap.class));
    DefaultMapping mapping = new DefaultMapping(source, target);
    parseAndSetMappingConversionExecutor(output, mapping);
    parseAndSetMappingRequired(output, mapping);
    return mapping;
View Full Code Here

      value = output.getValue();
    } else {
      value = name;
    }
    Expression source = parser.parseExpression(value, new FluentParserContext().evaluate(RequestContext.class));
    Expression target = parser.parseExpression(name, new FluentParserContext().evaluate(MutableAttributeMap.class));
    DefaultMapping mapping = new DefaultMapping(source, target);
    parseAndSetMappingConversionExecutor(output, mapping);
    parseAndSetMappingRequired(output, mapping);
    return mapping;
  }
View Full Code Here

    if (StringUtils.hasText(output.getValue())) {
      value = output.getValue();
    } else {
      value = "flowScope." + name;
    }
    Expression source = parser.parseExpression(name, new FluentParserContext().evaluate(MutableAttributeMap.class));
    Expression target = parser.parseExpression(value, new FluentParserContext().evaluate(RequestContext.class));
    DefaultMapping mapping = new DefaultMapping(source, target);
    parseAndSetMappingConversionExecutor(output, mapping);
    parseAndSetMappingRequired(output, mapping);
    return mapping;
View Full Code Here

      value = output.getValue();
    } else {
      value = "flowScope." + name;
    }
    Expression source = parser.parseExpression(name, new FluentParserContext().evaluate(MutableAttributeMap.class));
    Expression target = parser.parseExpression(value, new FluentParserContext().evaluate(RequestContext.class));
    DefaultMapping mapping = new DefaultMapping(source, target);
    parseAndSetMappingConversionExecutor(output, mapping);
    parseAndSetMappingRequired(output, mapping);
    return mapping;
  }
View Full Code Here

  }

  public void testStartWithMapper() {
    DefaultMapper attributeMapper = new DefaultMapper();
    ExpressionParser parser = new WebFlowSpringELExpressionParser(new SpelExpressionParser());
    Expression x = parser.parseExpression("attr", new FluentParserContext().evaluate(AttributeMap.class));
    Expression y = parser.parseExpression("flowScope.attr",
        new FluentParserContext().evaluate(RequestContext.class));
    attributeMapper.addMapping(new DefaultMapping(x, y));
    flow.setInputMapper(attributeMapper);
    MockRequestControlContext context = new MockRequestControlContext(flow);
View Full Code Here

  public void testStartWithMapper() {
    DefaultMapper attributeMapper = new DefaultMapper();
    ExpressionParser parser = new WebFlowSpringELExpressionParser(new SpelExpressionParser());
    Expression x = parser.parseExpression("attr", new FluentParserContext().evaluate(AttributeMap.class));
    Expression y = parser.parseExpression("flowScope.attr",
        new FluentParserContext().evaluate(RequestContext.class));
    attributeMapper.addMapping(new DefaultMapping(x, y));
    flow.setInputMapper(attributeMapper);
    MockRequestControlContext context = new MockRequestControlContext(flow);
    LocalAttributeMap<Object> sessionInput = new LocalAttributeMap<Object>();
View Full Code Here

  }

  public void testStartWithMapperButNoInput() {
    DefaultMapper attributeMapper = new DefaultMapper();
    ExpressionParser parser = new WebFlowSpringELExpressionParser(new SpelExpressionParser());
    Expression x = parser.parseExpression("attr", new FluentParserContext().evaluate(AttributeMap.class));
    Expression y = parser.parseExpression("flowScope.attr",
        new FluentParserContext().evaluate(RequestContext.class));
    attributeMapper.addMapping(new DefaultMapping(x, y));
    flow.setInputMapper(attributeMapper);
    MockRequestControlContext context = new MockRequestControlContext(flow);
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.