Examples of MappingResult


Examples of org.springframework.binding.mapping.MappingResult

  public Object getFieldValue(String field) {
    field = fixedField(field);
    if (mappingResults != null) {
      List<MappingResult> results = mappingResults.getResults(new FieldErrorResult(field));
      if (!results.isEmpty()) {
        MappingResult fieldError = results.get(0);
        return fieldError.getOriginalValue();
      }
    }
    return getFormattedValue(field);
  }
View Full Code Here

Examples of org.springframework.binding.mapping.MappingResult

    field = fixedField(field);
    // requires boundObject and expressionParser to be set to work
    if (mappingResults != null) {
      List<MappingResult> results = mappingResults.getResults(new PropertyErrorMappingResult(field));
      if (!results.isEmpty()) {
        MappingResult fieldError = results.get(0);
        return fieldError.getOriginalValue();
      }
    }
    return parseFieldExpression(field).getValue(boundObject);
  }
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.