core/src/main/java/com/orientechnologies/common/parser/OBaseParser.java
protected String parserRequiredWord(final boolean iUpperCase, final String iCustomMessage, String iSeparators) {
    if (iSeparators == null)
      iSeparators = " ()=><,\r\n";

    parserNextWord(iUpperCase, iSeparators);
    if (parserLastWord.length() == 0)
      throwSyntaxErrorException(iCustomMessage);
    if (parserLastWord.charAt(0) == '`' && parserLastWord.charAt(parserLastWord.length() - 1) == '`') {
      return parserLastWord.substring(1, parserLastWord.length() - 1);
    }
    return parserLastWord.toString();
  }
protected String parserRequiredWord(final boolean iUpperCase, final String iCustomMessage, String iSeparators) {
    if (iSeparators == null)
      iSeparators = " ()=><,\r\n";

    parserNextWord(iUpperCase, iSeparators);
    if (parserLastWord.length() == 0)
      throwSyntaxErrorException(iCustomMessage);
    if (parserLastWord.charAt(0) == '`' && parserLastWord.charAt(parserLastWord.length() - 1) == '`') {
      return parserLastWord.substring(1, parserLastWord.length() - 1);
    }
    return parserLastWord.toString();
  }
protected String parserRequiredWord ( final boolean iUpperCase , final String iCustomMessage , String iSeparators ) { if ( iSeparators == null ) iSeparators = " ()=><,\r\n" ; parserNextWord ( iUpperCase , iSeparators ) ; if ( parserLastWord . length ( ) == 0 ) throwSyntaxErrorException ( iCustomMessage ) ; if ( parserLastWord . charAt ( 0 ) == ' ' && parserLastWord . charAt ( parserLastWord . length ( ) - 1 ) == ' ' ) { return parserLastWord . substring ( 1 , parserLastWord . length ( ) - 1 ) ; } return parserLastWord . toString ( ) ; }
Parses the next word. If no word is found or the parsed word is not present in the word array received as parameter then a
SyntaxError exception with the custom message received as parameter is thrown. It returns the word parsed if any.

@param iUpperCase
True if must return UPPERCASE, otherwise false
@param iCustomMessage
Custom message to include in case of SyntaxError exception
@param iSeparators
Separator characters
@return The word parsed
Parses the next word . If no word is found or the parsed word is not present in the word array received as parameter then a SyntaxError exception with the custom message received as parameter is thrown . It returns the word parsed if any .