package org.apache.felix.ipojo.everest.impl;

import org.apache.felix.ipojo.everest.services.Action;
import org.apache.felix.ipojo.everest.services.Path;
import org.apache.felix.ipojo.everest.services.Relation;

import java.util.ArrayList;
import java.util.List;

/**
 * Utility class to handle collection of relations.
 */
public class Relations {


    public static class Builder {

        List<Relation> relations = new ArrayList<Relation>();

        public Builder addRelation(Path path, Action action, String name, String description) {
            relations.add(new DefaultRelation(path, action, name, description));
            return this;
        }

        public Builder addRelation(Path path, Action action, String name) {
            relations.add(new DefaultRelation(path, action, name));
            return this;
        }

        public List<Relation> build() {
            return relations;
        }

    }

}

@@ -474,36 +474,36 @@
 ddRelation(Path 
-path
+href
 , Action action,
@@ -576,36 +576,36 @@
 DefaultRelation(
-path
+href
 , action, name, 
@@ -695,20 +695,20 @@
 on(Path 
-path
+href
 , Action
@@ -781,12 +781,12 @@
 ion(
-path
+href
 , ac

Rename path to href in Relations