Package org.springframework.binding.mapping

Examples of org.springframework.binding.mapping.MappingResults


    Iterator it = mappings.iterator();
    while (it.hasNext()) {
      DefaultMapping mapping = (DefaultMapping) it.next();
      mapping.map(context);
    }
    MappingResults results = context.getMappingResults();
    if (logger.isDebugEnabled()) {
      logger.debug("Completing mapping between source [" + source.getClass().getName() + "] and target ["
          + target.getClass().getName() + "]; total mappings = " + results.getAllResults().size()
          + "; total errors = " + results.getErrorResults().size());
    }
    return results;
  }
View Full Code Here


   * execution request context into a newly created empty map.
   */
  protected LocalAttributeMap createSessionOutput(RequestContext context) {
    LocalAttributeMap output = new LocalAttributeMap();
    if (outputMapper != null) {
      MappingResults results = outputMapper.map(context, output);
      if (results != null && results.hasErrorResults()) {
        throw new FlowOutputMappingException(getOwner().getId(), getId(), results);
      }
    }
    return output;
  }
View Full Code Here

  }

  public MutableAttributeMap createSubflowInput(RequestContext context) {
    if (inputMapper != null) {
      LocalAttributeMap input = new LocalAttributeMap();
      MappingResults results = inputMapper.map(context, input);
      if (results != null && results.hasErrorResults()) {
        throw new FlowInputMappingException(context.getActiveFlow().getId(), context.getCurrentState().getId(),
            results);
      }
      return input;
    } else {
View Full Code Here

    }
  }

  public void mapSubflowOutput(AttributeMap output, RequestContext context) {
    if (outputMapper != null && output != null) {
      MappingResults results = outputMapper.map(output, context);
      if (results != null && results.hasErrorResults()) {
        throw new FlowOutputMappingException(context.getActiveFlow().getId(),
            context.getCurrentState().getId(), results);
      }
    }
  }
View Full Code Here

   */
  public void start(RequestControlContext context, MutableAttributeMap input) throws FlowExecutionException {
    assertStartStateSet();
    createVariables(context);
    if (inputMapper != null) {
      MappingResults results = inputMapper.map(input, context);
      if (results != null && results.hasErrorResults()) {
        throw new FlowInputMappingException(getId(), results);
      }
    }
    startActionList.execute(context);
    startState.enter(context);
View Full Code Here

   */
  public void end(RequestControlContext context, String outcome, MutableAttributeMap output)
      throws FlowExecutionException {
    endActionList.execute(context);
    if (outputMapper != null) {
      MappingResults results = outputMapper.map(context, output);
      if (results != null && results.hasErrorResults()) {
        throw new FlowOutputMappingException(getId(), results);
      }
    }
  }
View Full Code Here

   */
  public void start(RequestControlContext context, MutableAttributeMap<?> input) throws FlowExecutionException {
    assertStartStateSet();
    createVariables(context);
    if (inputMapper != null) {
      MappingResults results = inputMapper.map(input, context);
      if (results != null && results.hasErrorResults()) {
        throw new FlowInputMappingException(getId(), results);
      }
    }
    startActionList.execute(context);
    startState.enter(context);
View Full Code Here

   */
  public void end(RequestControlContext context, String outcome, MutableAttributeMap<?> output)
      throws FlowExecutionException {
    endActionList.execute(context);
    if (outputMapper != null) {
      MappingResults results = outputMapper.map(context, output);
      if (results != null && results.hasErrorResults()) {
        throw new FlowOutputMappingException(getId(), results);
      }
    }
  }
View Full Code Here

   * execution request context into a newly created empty map.
   */
  protected LocalAttributeMap<Object> createSessionOutput(RequestContext context) {
    LocalAttributeMap<Object> output = new LocalAttributeMap<Object>();
    if (outputMapper != null) {
      MappingResults results = outputMapper.map(context, output);
      if (results != null && results.hasErrorResults()) {
        throw new FlowOutputMappingException(getOwner().getId(), getId(), results);
      }
    }
    return output;
  }
View Full Code Here

  }

  public MutableAttributeMap<Object> createSubflowInput(RequestContext context) {
    if (inputMapper != null) {
      LocalAttributeMap<Object> input = new LocalAttributeMap<Object>();
      MappingResults results = inputMapper.map(context, input);
      if (results != null && results.hasErrorResults()) {
        throw new FlowInputMappingException(context.getActiveFlow().getId(), context.getCurrentState().getId(),
            results);
      }
      return input;
    } else {
View Full Code Here

TOP

Related Classes of org.springframework.binding.mapping.MappingResults

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.