/** * Create a column from the name, treating it as a Field if the name matches a field name, or a * custom string otherwise. If it is a custom string, it is automatically unquoted. * * @param name the label of a Field, or a String with or without quotes */ public ReportColumn(String name) { name = name.trim(); try { this.field = Field.valueOf(name.toUpperCase()); this.label = null; } catch (IllegalArgumentException e) { this.field = null; this.label = unquote(name); } }