private static  int checkInteger(String value) {
        return  Integer.parseInt(value);
    }
Check integer.

@param   value      the value
@return  the resulting integer
@throws  NumberFormatException if the value is not a valid integer
ambari-views/examples/property-validator-view/src/main/java/org/apache/ambari/view/property/MyValidator.java