|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object er.extensions.ERXValidation
This is more of a legacy object that was used until
we had ERXValidationFactory
in place.
The only place where this is used is when handling
ValidationExceptions
that have not been converted by the ERXValidationFactory. This class is
also used to handle formatter exceptions that are thrown number formatters in
WOComponents.
Field Summary | |
static boolean |
DO_NOT_PUSH_INCORRECT_VALUE_ON_EO
holds the static constant for not pushing an incorrect value onto an eo |
static ERXLogger |
log
logging support |
static boolean |
PUSH_INCORRECT_VALUE_ON_EO
holds the static constant for pushing an incorrect value onto an eo |
Constructor Summary | |
ERXValidation()
|
Method Summary | |
static void |
setPushChangesDefault(boolean val)
Sets pushing changes onto enterprise objects when a validation exception occurs. |
static void |
validationFailedWithException(Throwable e,
Object value,
String keyPath,
NSMutableDictionary errorMessages,
String displayPropertyKeyPath,
ERXLocalizer localizer)
Processes a validation exception to make it look better. |
static void |
validationFailedWithException(Throwable e,
Object value,
String keyPath,
NSMutableDictionary errorMessages,
String displayPropertyKeyPath,
ERXLocalizer localizer,
EOEntity entity)
Processes a validation exception to make it look better. |
static void |
validationFailedWithException(Throwable e,
Object value,
String keyPath,
NSMutableDictionary errorMessages,
String displayPropertyKeyPath,
ERXLocalizer localizer,
EOEntity entity,
boolean pushChanges)
Processes a validation exception to make it look better. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ERXLogger log
public static final boolean PUSH_INCORRECT_VALUE_ON_EO
public static final boolean DO_NOT_PUSH_INCORRECT_VALUE_ON_EO
Constructor Detail |
public ERXValidation()
Method Detail |
public static void setPushChangesDefault(boolean val)
val
- sets whether incorrect values should be pushed
onto an objectpublic static void validationFailedWithException(Throwable e, Object value, String keyPath, NSMutableDictionary errorMessages, String displayPropertyKeyPath, ERXLocalizer localizer)
e
- validation exception.value
- that failed validation.keyPath
- that failed validation.errorMessages
- dictionary to place the formatted message into.displayPropertyKeyPath
- key used in the case of the formatter exception
to calculate the pretty display name.localizer
- to use to localize the exception.public static void validationFailedWithException(Throwable e, Object value, String keyPath, NSMutableDictionary errorMessages, String displayPropertyKeyPath, ERXLocalizer localizer, EOEntity entity)
e
- validation exception.value
- that failed validation.keyPath
- that failed validation.errorMessages
- dictionary to place the formatted message into.displayPropertyKeyPath
- key used in the case of the formatter exception
to calculate the pretty display name.localizer
- to use to localize the exception.entity
- that the validation exception is happening too.public static void validationFailedWithException(Throwable e, Object value, String keyPath, NSMutableDictionary errorMessages, String displayPropertyKeyPath, ERXLocalizer localizer, EOEntity entity, boolean pushChanges)
e
- validation exception.value
- that failed validation.keyPath
- that failed validation.errorMessages
- dictionary to place the formatted message into.displayPropertyKeyPath
- key used in the case of the formatter exception
to calculate the pretty display name.localizer
- to use to localize the exception.entity
- that the validation exception is happening too.pushChanges
- boolean to flag if the bad values should be pushed onto the
eo.
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |