class ElementProperties {

    public static ElementProperty isParentOf(Path... paths) {
        return new RelationBetweenMultiElement("child", Arrays.asList(paths))  {
            @Override
            protected String plural(final String relation){return relation;}
            @Override
            public String toString() {
                String relation = String.format("has %s", paths.length==1 ?  "child" : "children");
                return asString(relation);
            }
        };
    }

    private  ElementProperties();

}