private static String validIdentifier ( String string ) { try { DefUtils . assertIdentifier ( string ) ; } catch ( Exception e ) { throw new GeneratorSetException ( e . getMessage ( ) ) ; } return string ; }
Reports a GeneratorSetException if the given string is not a valid identifier . Otherwise returns this string .