*/
public void setValue(String theValue) throws DataTypeException {
Message message = getMessage();
if (message != null) {
ValidationContext context = message.getValidationContext();
String version = message.getVersion();
if (context != null) {
PrimitiveTypeRule[] rules = context.getPrimitiveRules(version, getName(), this);
for (int i = 0; i < rules.length; i++) {
theValue = rules[i].correct(theValue);
if (!rules[i].test(theValue)) {
throw new DataTypeException("Failed validation rule for value \"" + theValue + "\": " + rules[i].getDescription());