Package org.springframework.binding.mapping

Examples of org.springframework.binding.mapping.MappingResults


    }
  }

  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


    }
    DefaultMappingContext context = new DefaultMappingContext(source, target);
    for (DefaultMapping mapping : mappings) {
      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

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.