stalkr.html.parser.RepeatableElementSetter Maven / Gradle / Ivy
package stalkr.html.parser;
import java.lang.reflect.Field;
import java.util.ArrayList;
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.jsoup.nodes.Element;
@RequiredArgsConstructor
public class RepeatableElementSetter implements Setter {
final String selector;
final Field field;
final BindableClass modelClass;
@Override
public void bind( final Element document, final Object instance ) {
try {
val elements = document.select( selector );
val list = new ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy