@Override public Set<String> configurationKeys() { return Set.of( "neo4j.cypher.show", "neo4j.driver.url", "neo4j.driver.username", "neo4j.driver.password" ); }
@Override public Set<String> configurationKeys() { return Set.of( "foundationdb.directory.node-prefix.hex", "foundationdb.directory.content-prefix.hex", "persistence.fragment.capacity" ); }
@Override public Set<ModuleReference> findAll() { return Set.of(reference); }
@Override public Set<ModuleReference> findAll() { return Set.of(reference); }
@Override public Set<String> configurationKeys() { return Set.of( "persistence.mem.wait.min", "persistence.mem.wait.max", "persistence.fragment.capacity" ); }
@JsonIgnore private Set<Data> getParents(){ if (parents==null){ if (parent==null){ return Collections.emptySet(); } return Set.of(parent); } else { return parents; } }
public static TestSpecificationElement objectNode(SpecificationElementType elementType, String name, Set<TestSpecificationElement> properties) { TestSpecificationElement mapElement = new TestSpecificationElement(name, elementType, Set.of("object"), List.of(), Set.of(), new TreeMap<>(properties.stream().collect(Collectors.toMap(e -> e.getName(), e -> e))), null); properties.forEach(e -> e.parent(mapElement)); return mapElement; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchValidRequired.class/*, JArchValidRequired.List.class*/)) .stream() .forEach(element -> validRequired(element)); return false; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchSearchFieldLookup.class, JArchSearchFieldLookup.List.class)) .stream() .forEach(element -> validSearchField(element)); return false; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchColumnDataTable.class, JArchColumnDataTable.List.class)) .stream() .forEach(element -> validColumnDataTable(processingEnv, element)); return false; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchSearchTab.class, JArchSearchTab.List.class)) .stream() .forEach(element -> validSearchTab(element)); return false; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchSearchFieldCombobox.class, JArchSearchFieldCombobox.List.class)) .stream() .forEach(element -> validComboBox(element)); return false; }
private Set<String> prefixAndPostfix(String title) { for (String separator : GroupTitleUtils.getGroupSeparators()) { String[] splittedTitle = title.split(separator); if (splittedTitle.length > 1) { String prefix = splittedTitle[0]; String postfix = splittedTitle[splittedTitle.length - 1]; return Set.copyOf(asList(prefix, postfix)); } } return Set.of(title); }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchSearchFieldComboboxCommandJpa.class, JArchSearchFieldComboboxCommandJpa.List.class)) .stream() .forEach(element -> validComboBox(element)); return false; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchSearchField.class, JArchSearchField.List.class)) .stream() .forEach(element -> validSearchField(element)); return false; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchAutoIncrement.class)) .stream() .forEach(element -> validTypeField(processingEnv, element)); return false; }
@Override public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { roundEnv .getElementsAnnotatedWithAny(Set.of(JArchValidPeriod.class, JArchValidPeriod.List.class)) .forEach(element -> validPeriod(element)); return false; }
@Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { ProcessorUtils.processingEnvironment = processingEnv; roundEnv .getElementsAnnotatedWithAny(Set.of(JArchGenerateLogicCrud.class, JArchGenerateLogicCrud.List.class)) .stream() .forEach(element -> new LogicCrud(processingEnv, element).generate()); return false; }
@Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { ProcessorUtils.processingEnvironment = processingEnv; roundEnv .getElementsAnnotatedWithAny(Set.of(JArchGenerateLogicMasterSubDetail.class, JArchGenerateLogicMasterSubDetail.List.class)) .stream() .forEach(element -> new LogicMasterDetailSubDetail(processingEnv, element).generate()); return false; }
public static TestSpecificationElement arrayNode(String name, TestSpecificationElement items) { TestSpecificationElement arrayNode = new TestSpecificationElement(name, SpecificationElementType.EMBEDDED, Set.of("array"), List.of(), Set.of(), Map.of(), items); items.parent(arrayNode); return arrayNode; }