Package org.springframework.binding.mapping.results

Examples of org.springframework.binding.mapping.results.TypeConversionError


   * could not be converted to a type that could be assigned to the target expression.
   * @param originalValue the original source value that is empty (null or an empty string, typically)
   * @param cause the actual type conversion exception that occurred
   */
  public void setTypeConversionErrorResult(Object originalValue, Exception cause) {
    add(new TypeConversionError(currentMapping, originalValue, cause));
  }
View Full Code Here


      public boolean isRequired() {
        return true;
      }
    };
    mappingResults.add(new TypeConversionError(mapping, "bogus", null));
    DefaultMappingResults results = new DefaultMappingResults(source, testBean, mappingResults);
    model.setMappingResults(results);
    assertEquals("bogus", model.getFieldValue("datum2"));
    // not offically an error until an actual error message is associated with field
    assertEquals(0, model.getErrorCount());
View Full Code Here

   * could not be converted to a type that could be assigned to the target expression.
   * @param originalValue the original source value that is empty (null or an empty string, typically)
   * @param cause the actual type conversion exception that occurred
   */
  public void setTypeConversionErrorResult(Object originalValue, Exception cause) {
    add(new TypeConversionError(currentMapping, originalValue, cause));
  }
View Full Code Here

TOP

Related Classes of org.springframework.binding.mapping.results.TypeConversionError

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.