protected boolean parseGlobalOptionsLine ( final ParserData parserData , final String line , int lineNumber ) throws ParsingException { // Read in the variables from the line final HashMap < ParserType , String [ ] > variableMap = getLineVariables ( parserData , line , lineNumber , ' ' , ' ' , ' ' , false ) ; // Check the read in values are valid if ( ( variableMap . size ( ) > 1 && variableMap . containsKey ( ParserType . NONE ) ) || ( variableMap . size ( ) > 0 && ! variableMap . containsKey ( ParserType . NONE ) ) ) { throw new ParsingException ( format ( ProcessorConstants . ERROR_RELATIONSHIP_BASE_LEVEL_MSG , lineNumber , line ) ) ; } String [ ] variables = variableMap . get ( ParserType . NONE ) ; // Check that some options were found, if so then parse them if ( variables . length > 0 ) { addOptions ( parserData , parserData . getCurrentLevel ( ) , variables , 0 , line , lineNumber ) ; } else { log . warn ( format ( ProcessorConstants . WARN_EMPTY_BRACKETS_MSG , lineNumber ) ) ; } return true ; }
Processes a line that represents the Global Options for the Content Specification .