@Test void getLabel() { assertEquals("test", excelSheetReader.getEntityType().getLabel()); }
public EntityType getEntityType() { if (entityType == null) { String sheetName = sheet.getSheetName(); EntityType newEntityType = entityTypeFactory.create(sheetName).setLabel(sheetName); if (colNamesMap == null) { Iterator<Row> it = sheet.iterator(); if (it.hasNext()) { colNamesMap = toColNamesMap(it.next()); } } if (colNamesMap != null) { for (String colName : colNamesMap.keySet()) { newEntityType.addAttribute(attrMetaFactory.create().setName(colName).setDataType(STRING)); } } this.entityType = newEntityType; } return entityType; }
ExcelRepository extends AbstractRepository { public EntityType getEntityType() { if (entityType == null) { String sheetName = sheet.getSheetName(); EntityType newEntityType = entityTypeFactory.create(sheetName).setLabel(sheetName); if (colNamesMap == null) { Iterator<Row> it = sheet.iterator(); if (it.hasNext()) { colNamesMap = toColNamesMap(it.next()); } } if (colNamesMap != null) { for (String colName : colNamesMap.keySet()) { newEntityType.addAttribute(attrMetaFactory.create().setName(colName).setDataType(STRING)); } } this.entityType = newEntityType; } return entityType; } }
ExcelRepository extends AbstractRepository { public EntityType getEntityType() { if (entityType == null) { String sheetName = sheet.getSheetName(); EntityType newEntityType = entityTypeFactory.create(sheetName).setLabel(sheetName); if (colNamesMap == null) { Iterator<Row> it = sheet.iterator(); if (it.hasNext()) { colNamesMap = toColNamesMap(it.next()); } } if (colNamesMap != null) { for (String colName : colNamesMap.keySet()) { newEntityType.addAttribute(attrMetaFactory.create().setName(colName).setDataType(STRING)); } } this.entityType = newEntityType; } return entityType; } ExcelRepository(
      Sheet sheet, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory);  ExcelRepository(
      Sheet sheet,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      List<CellProcessor> cellProcessors); }
ExcelRepository extends AbstractRepository { public EntityType getEntityType() { if (entityType == null) { String sheetName = sheet.getSheetName(); EntityType newEntityType = entityTypeFactory.create(sheetName).setLabel(sheetName); if (colNamesMap == null) { Iterator<Row> it = sheet.iterator(); if (it.hasNext()) { colNamesMap = toColNamesMap(it.next()); } } if (colNamesMap != null) { for (String colName : colNamesMap.keySet()) { newEntityType.addAttribute(attrMetaFactory.create().setName(colName).setDataType(STRING)); } } this.entityType = newEntityType; } return entityType; } ExcelRepository(
      Sheet sheet, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory);  ExcelRepository(
      Sheet sheet,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      List<CellProcessor> cellProcessors); int getNrRows(); @Override Iterator<Entity> iterator(); void addCellProcessor(CellProcessor cellProcessor); EntityType getEntityType(); @Override Set<RepositoryCapability> getCapabilities(); @Override long count(); }
ExcelRepository extends AbstractRepository { public EntityType getEntityType() { if (entityType == null) { String sheetName = sheet.getSheetName(); EntityType newEntityType = entityTypeFactory.create(sheetName).setLabel(sheetName); if (colNamesMap == null) { Iterator<Row> it = sheet.iterator(); if (it.hasNext()) { colNamesMap = toColNamesMap(it.next()); } } if (colNamesMap != null) { for (String colName : colNamesMap.keySet()) { newEntityType.addAttribute(attrMetaFactory.create().setName(colName).setDataType(STRING)); } } this.entityType = newEntityType; } return entityType; } ExcelRepository(
      Sheet sheet, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory);  ExcelRepository(
      Sheet sheet,
      EntityTypeFactory entityTypeFactory,
      AttributeFactory attrMetaFactory,
      List<CellProcessor> cellProcessors); int getNrRows(); @Override Iterator<Entity> iterator(); void addCellProcessor(CellProcessor cellProcessor); EntityType getEntityType(); @Override Set<RepositoryCapability> getCapabilities(); @Override long count();  }