Engine(DataModelDefinition<?> definition, WorkbookInfo info, int maxColumns) { assert definition != null; assert info != null; this.definition = definition; this.info = info; List<PropertyName> props = new ArrayList<>(definition.getProperties()); if (props.size() > maxColumns) { props = props.subList(0, maxColumns); } this.properties = props; }
/** * Starts scan and visits each property method. * @param definition the model definition * @param context context objects (nullable) * @throws E if failed * @throws IllegalArgumentException if some parameters were {@code null} */ public void scan(DataModelDefinition<?> definition, C context) throws E { if (definition == null) { throw new IllegalArgumentException("definition must not be null"); //$NON-NLS-1$ } for (PropertyName name : definition.getProperties()) { scan(definition, name, context); } }
for (PropertyName property : definition.getProperties()) { writer.println("<tr>"); //$NON-NLS-1$
if (definition.getProperties().size() > version.getMaxColumns()) { LOG.warn(MessageFormat.format( Messages.getString("ExcelSheetSinkFactory.warnExceedColumnCount"), //$NON-NLS-1$
return +1; for (PropertyName name : definition.getProperties()) { Class<?> type = definition.getType(name).getRepresentation(); if (Comparable.class.isAssignableFrom(type) == false) {