in src/main/java/org/apache/commons/validator/Field.java [561:603]
void process(final Map<String, String> globalConstants, final Map<String, String> constants) {
this.hMsgs.setFast(false);
this.hVars.setFast(true);
this.generateKey();
// Process FormSet Constants
for (final Entry<String, String> entry : constants.entrySet()) {
final String key1 = entry.getKey();
final String key2 = TOKEN_START + key1 + TOKEN_END;
final String replaceValue = entry.getValue();
property = ValidatorUtils.replace(property, key2, replaceValue);
processVars(key2, replaceValue);
this.processMessageComponents(key2, replaceValue);
}
// Process Global Constants
for (final Entry<String, String> entry : globalConstants.entrySet()) {
final String key1 = entry.getKey();
final String key2 = TOKEN_START + key1 + TOKEN_END;
final String replaceValue = entry.getValue();
property = ValidatorUtils.replace(property, key2, replaceValue);
processVars(key2, replaceValue);
this.processMessageComponents(key2, replaceValue);
}
// Process Var Constant Replacement
for (final String key1 : getVarMap().keySet()) {
final String key2 = TOKEN_START + TOKEN_VAR + key1 + TOKEN_END;
final Var var = this.getVar(key1);
final String replaceValue = var.getValue();
this.processMessageComponents(key2, replaceValue);
}
hMsgs.setFast(true);
}