* a validator on the fly.
**/
public IValidator getValidator()
{
NumberValidator validator = new NumberValidator();
if (minimumBinding != null)
{
Number minimum = (Number) minimumBinding.getObject("minimum", Number.class);
validator.setMinimum(minimum);
}
if (maximumBinding != null)
{
Number maximum = (Number) maximumBinding.getObject("maximum", Number.class);
validator.setMaximum(maximum);
}
if (requiredBinding != null)
{
boolean required = requiredBinding.getBoolean();
validator.setRequired(required);
}
if (typeBinding != null)
{
validator.setValueType(typeBinding.getString());
}
return validator;
}