@Test public void getEnabledFieldNames() { this.component.setSections(this.sections); final List<String> fields = this.component.getEnabledFieldNames(); Assert.assertEquals(3, fields.size()); List<String> expected = Arrays.asList("a", "d", "e"); Assert.assertEquals(expected, fields); }
@Override public List<String> getEnabledFieldNames() { final List<String> enabledFields = new LinkedList<>(); for (final RecordSection section : getEnabledSections()) { for (final RecordElement element : section.getEnabledElements()) { enabledFields.addAll(element.getDisplayedFields()); } } return Collections.unmodifiableList(enabledFields); }
DefaultRecordConfiguration implements RecordConfiguration { @Override public List<String> getEnabledFieldNames() { final List<String> enabledFields = new LinkedList<>(); for (final RecordSection section : getEnabledSections()) { for (final RecordElement element : section.getEnabledElements()) { enabledFields.addAll(element.getDisplayedFields()); } } return Collections.unmodifiableList(enabledFields); } }
DefaultRecordConfiguration implements RecordConfiguration { @Override public List<String> getEnabledFieldNames() { final List<String> enabledFields = new LinkedList<>(); for (final RecordSection section : getEnabledSections()) { for (final RecordElement element : section.getEnabledElements()) { enabledFields.addAll(element.getDisplayedFields()); } } return Collections.unmodifiableList(enabledFields); }  }
DefaultRecordConfiguration implements RecordConfiguration { @Override public List<String> getEnabledFieldNames() { final List<String> enabledFields = new LinkedList<>(); for (final RecordSection section : getEnabledSections()) { for (final RecordElement element : section.getEnabledElements()) { enabledFields.addAll(element.getDisplayedFields()); } } return Collections.unmodifiableList(enabledFields); }  @Override List<RecordSection> getAllSections(); @Override List<RecordSection> getEnabledSections(); @Override void setSections(List<RecordSection> sections); @Override List<String> getEnabledFieldNames(); @SuppressWarnings("deprecation") @Override List<String> getEnabledNonIdentifiableFieldNames(); @Override List<String> getAllFieldNames(); @Override DocumentReference getPhenotypeMapping(); @Override void setPhenotypeMapping(DocumentReference mapping); @Override String getISODateFormat(); @Override String getDateOfBirthFormat(); @Override void setDateOfBirthFormat(String format); @Override String toString(); }
DefaultRecordConfiguration implements RecordConfiguration { @Override public List<String> getEnabledFieldNames() { final List<String> enabledFields = new LinkedList<>(); for (final RecordSection section : getEnabledSections()) { for (final RecordElement element : section.getEnabledElements()) { enabledFields.addAll(element.getDisplayedFields()); } } return Collections.unmodifiableList(enabledFields); }  @Override List<RecordSection> getAllSections(); @Override List<RecordSection> getEnabledSections(); @Override void setSections(List<RecordSection> sections); @Override List<String> getEnabledFieldNames(); @SuppressWarnings("deprecation") @Override List<String> getEnabledNonIdentifiableFieldNames(); @Override List<String> getAllFieldNames(); @Override DocumentReference getPhenotypeMapping(); @Override void setPhenotypeMapping(DocumentReference mapping); @Override String getISODateFormat(); @Override String getDateOfBirthFormat(); @Override void setDateOfBirthFormat(String format); @Override String toString();  }