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

com.github.loyada.jdollarx.HighLevelPaths Maven / Gradle / Ivy

There is a newer version: 1.5.5
Show newest version
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