boolean (String name) { if (StringUtil.isEmptyOrSpaces(name)) return false; if (name.equals(MavenId.UNKNOWN_VALUE)) return false; for (int i = 0; i < name.length(); i++) { char ch = name.charAt(i); if (!(Character.isDigit(ch) || Character.isLetter(ch) || ch == '-' || ch == '_' || ch == '.')) { return false; } } return true; }