How i validate the mobile number

hi
how i validate the mobile number that should of 10 digits and always in numeric in vaadin…

thanks
SK

I think a simple regexp is what you are looking for. See the javadocs for RegexpValidator.