public boolean checkGroupId ( String d ) { Pattern p = Pattern . compile ( "G[1-9][0-9]*" , Pattern . CASE_INSENSITIVE ) ; Matcher m = p . matcher ( d ) ; LOG . debug ( "Validation of groupID:" ) ; if ( m . matches ( ) ) { LOG . debug ( "GroupID is valid:" ) ; return true ; } LOG . debug ( "GroupID is not valid:" ) ; return false ; }
method to validate the group id