}
}
}
public ArrayList<OutputDataRecord> getOutputData() throws Exception {
Expr expr = attributes.get(OUTPUTDATA.toLowerCase());
if (expr == null) {
return null;
}
ArrayList<OutputDataRecord> outputDataAttribute = new ArrayList<OutputDataRecord>(0);
if (expr instanceof ListExpr) {
Iterator iteratorExpr = ((ListExpr) expr).iterator();
RecordExpr jdlRecExpr = null;
Expr exprTmp = null;
OutputDataRecord outputDataRecord = null;
while (iteratorExpr.hasNext()) {
outputDataRecord = new OutputDataRecord();
jdlRecExpr = (RecordExpr) iteratorExpr.next();
exprTmp = jdlRecExpr.lookup(OUTPUTDATA_OUTPUTFILE);
if (exprTmp == null) {
throw new Exception("OutputFile is mandatory for the OutputData jdl attribute.");
}
outputDataRecord.setODOutputFile(exprTmp.stringValue().trim());
exprTmp = jdlRecExpr.lookup(OUTPUTDATA_LOGICALFILENAME);
outputDataRecord.setODLogicalFilename((exprTmp != null) ? exprTmp.stringValue().trim() : "");
exprTmp = jdlRecExpr.lookup(OUTPUTDATA_STORAGEELEMENT);
outputDataRecord.setODStorageElement((exprTmp != null) ? exprTmp.stringValue().trim() : "");
outputDataAttribute.add(outputDataRecord);
}
} else {
throw new Exception("Bad format for 'OutputData' jdl attribute.");