All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.whimtrip.ext.jwhthtmltopojo.intrf.AcceptIfResolver Maven / Gradle / Ivy

Go to download

Fully featured highly pluggable and customizable Java html to pojo reflection converter

There is a newer version: 1.0.2
Show newest version




package fr.whimtrip.ext.jwhthtmltopojo.intrf;

import fr.whimtrip.ext.jwhthtmltopojo.impl.AcceptIfFirst;
import fr.whimtrip.ext.jwhthtmltopojo.impl.AcceptIfValidAttrRegexCheck;
import org.jsoup.nodes.Element;

/**
 *
 * Part of project jwht-htmltopojo
 *
 * Accept If Resolver implementation can be used to provide conditional parsing
 * of some fields. Some good examples of custom implementations can be found here :
 * {@link AcceptIfFirst} or here {@link AcceptIfValidAttrRegexCheck}.
 *
 * Any implementation can then be used as following :
 *
 *
 *     @AcceptObjectIf(MyCustomAcceptIfResolver.class)
 *     private SomePojo myConditionalPojoField;
 *
* * @author Louis-wht * @since 1.0.0 */ public interface AcceptIfResolver extends Initiate { /** * @param element the Html element we need to resolve the acceptancy for. * @param parentObject the parent object the field belongs to. * @return false if the field shouldn't be fetched or true if it should be. */ boolean accept(Element element, Object parentObject); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy