com.github.loyada.jdollarx.HighLevelPaths Maven / Gradle / Ivy
package com.github.loyada.jdollarx;
import java.util.function.Function;
import static com.github.loyada.jdollarx.BasicPath.input;
import static com.github.loyada.jdollarx.CustomElementProperties.createPropertyGenerator;
import static com.github.loyada.jdollarx.CustomElementProperties.hasProperty;
import static java.lang.String.format;
public class HighLevelPaths {
static private final Function inputType = createPropertyGenerator(
value -> format("@type='%s'", value),
value -> format("has type %s", value)
);
public static ElementProperty hasType(String theType) {
return hasProperty(inputType, theType);
}
public static Path checkbox = input.that(hasType("checkbox"));
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy