protected boolean parseStrategy ( final String w ) throws OCommandSQLParsingException { if ( ! w . equals ( KEYWORD_STRATEGY ) ) return false ; final String strategyWord = parserNextWord ( true ) ; try { traverse . setStrategy ( OTraverse . STRATEGY . valueOf ( strategyWord . toUpperCase ( Locale . ENGLISH ) ) ) ; } catch ( IllegalArgumentException ignore ) { throwParsingException ( "Invalid " + KEYWORD_STRATEGY + ". Use one between " + Arrays . toString ( OTraverse . STRATEGY . values ( ) ) ) ; } return true ; }
Parses the strategy keyword if found .