context.set( "file", pWriterFormatPath );
StringBuffer parse_error = new StringBuffer();
int numPM = pParseMessages.size();
for( int pmI = 0; pmI < numPM; pmI++ ) {
ParseMessage pm = (ParseMessage) pParseMessages.get(pmI);
parse_error.append( pm.getType() + Standard.COLON +
(Standard.EMPTY.equals(pm.getFileName()) ? Standard.EMPTY : pm.getFileName() + Standard.COLON ) +
( (ParseMessage.INVALID == pm.getLine()) ? Standard.EMPTY : "line:"+pm.getLine() + Standard.COLON ) +
( (ParseMessage.INVALID == pm.getColumn()) ? Standard.EMPTY : "column:"+pm.getColumn() + Standard.COLON ) +
pm.getMessage() +
( pmI < numPM - 1 ? Standard.COMMA_SPACE : Standard.EMPTY )
);
}
if( 0 < numPM ) {
context.set("parse-error", parse_error.toString() );