Default implementations in abstract code generator validator only check whether the contents are digits.