error = true;
}
} else {
errorBuffer.add(SchemaNode.class.getSimpleName(), new InvalidPropertySchemaToken(expression, "invalid_range_expression", "Range must have exactly two bounds."));
error = true;
}
if (error) {
return;
}
globalValidators.add(new Validator("check" + getValueType() + "inRangeError", className, propertyName));
} else {
errorBuffer.add(SchemaNode.class.getSimpleName(), new InvalidPropertySchemaToken(expression, "invalid_range_expression", "Range expression must start and end with [ or ], e.g. [" + expression + "]."));
}
} else {
errorBuffer.add(SchemaNode.class.getSimpleName(), new InvalidPropertySchemaToken(expression, "invalid_range_expression", "Range expression must contain two values separated by a comma."));
}
}
}