class ElementProperties {

    public static ElementProperty hasId(String id) {
        return new ElementProperty() {
            @Override
            public String toXpath() {
                return XpathUtils.hasId(id);
            }

            public String toString() {
                return String.format("has Id \"%s\"", id);
            }
        };
    }

    private  ElementProperties();

}