static public boolean validate ( String id ) { if ( id . equals ( "" ) ) { return false ; } else if ( id . equals ( "." ) || id . equals ( ".." ) ) { return false ; } Matcher matcher = IdUtil . pattern . matcher ( id ) ; return matcher . matches ( ) ; }
Verifies the correctness of an identifier .