org.springmodules.validation.bean.converter
Class KeepAsIsErrorCodeConverter
java.lang.Object
org.springmodules.validation.bean.converter.KeepAsIsErrorCodeConverter
- All Implemented Interfaces:
- ErrorCodeConverter
public class KeepAsIsErrorCodeConverter
- extends java.lang.Object
- implements ErrorCodeConverter
A simple implementation of ErrorCodeConverter that doesn't do any conversion and
returns the passed-in error code.
- Author:
- Uri Boness
|
Method Summary |
java.lang.String |
convertGlobalErrorCode(java.lang.String errorCode,
java.lang.Class clazz)
Returns the passed in error code. |
java.lang.String |
convertPropertyErrorCode(java.lang.String errorCode,
java.lang.Class clazz,
java.lang.String propertyName)
Returns the passed in error code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepAsIsErrorCodeConverter
public KeepAsIsErrorCodeConverter()
convertGlobalErrorCode
public java.lang.String convertGlobalErrorCode(java.lang.String errorCode,
java.lang.Class clazz)
- Returns the passed in error code.
- Specified by:
convertGlobalErrorCode in interface ErrorCodeConverter
- Parameters:
errorCode - The global error code to convert.clazz - The class that the given error code is associated with.
- Returns:
- The converted error code.
- See Also:
ErrorCodeConverter.convertGlobalErrorCode(String, Class)
convertPropertyErrorCode
public java.lang.String convertPropertyErrorCode(java.lang.String errorCode,
java.lang.Class clazz,
java.lang.String propertyName)
- Returns the passed in error code.
- Specified by:
convertPropertyErrorCode in interface ErrorCodeConverter
- Parameters:
errorCode - The property error code to convert.clazz - The class that is associated with the given error code.propertyName - The property that is associated with the given error code.
- Returns:
- The converted error code.
- See Also:
ErrorCodeConverter.convertPropertyErrorCode(String, Class, String)
Copyright © 2005. All Rights Reserved.