class ElementProperties {

    public static ElementProperty isSiblingOf(Path... paths) {
        return new RelationBetweenMultiElement("", Arrays.asList(paths)) {
            @Override
            protected String getXpathExpressionForSingle(Path path) {
                return "(" + isAfterSibling(path).toXpath() + ") or (" + isBeforeSibling(path).toXpath() + ")";
            }
            @Override
            public String toString() {
                return asString("has sibling");
            }
        };
    }

    private  ElementProperties();

}