@Override
public void visit(AggregateSymbol obj) {
if (obj.getAggregateFunction() != Type.TEXTAGG) {
return;
}
TextLine tl = (TextLine)obj.getExpression();
if (tl.isIncludeHeader()) {
validateDerivedColumnNames(obj, tl.getExpressions());
}
for (DerivedColumn dc : tl.getExpressions()) {
validateXMLContentTypes(dc.getExpression(), obj);
}
validateTextOptions(obj, tl.getDelimiter(), tl.getQuote());
if (tl.getEncoding() != null) {
try {
Charset.forName(tl.getEncoding());
} catch (IllegalArgumentException e) {
handleValidationError(QueryPlugin.Util.getString("ValidationVisitor.invalid_encoding", tl.getEncoding()), obj); //$NON-NLS-1$
}
}
}