protected boolean parseEmptyOrCommentLine ( final ParserData parserData , final String line ) { if ( isBlankLine ( line ) ) { if ( parserData . getCurrentLevel ( ) . getLevelType ( ) == LevelType . BASE ) { parserData . getContentSpec ( ) . appendChild ( new TextNode ( "\n" ) ) ; } else { parserData . getCurrentLevel ( ) . appendChild ( new TextNode ( "\n" ) ) ; } return true ; } else { if ( parserData . getCurrentLevel ( ) . getLevelType ( ) == LevelType . BASE ) { parserData . getContentSpec ( ) . appendComment ( line ) ; } else { parserData . getCurrentLevel ( ) . appendComment ( line ) ; } return true ; } }
Processes a line that represents a comment or an empty line in a Content Specification .