Make A2 API more public.
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / a2 / A2Component.java
index 2b6814f6b839bb9dab2c0421069f0e98fe4bd9e0..cc2f564716858b5dee3389404bf7fcf8a431dd1e 100644 (file)
@@ -23,6 +23,10 @@ public class A2Component implements Comparable<A2Component> {
                contribution.components.put(id, this);
        }
 
+       public Iterable<A2Branch> listBranches(Object filter) {
+               return branches.values();
+       }
+
        A2Branch getOrAddBranch(String branchId) {
                if (branches.containsKey(branchId))
                        return branches.get(branchId);
@@ -36,15 +40,15 @@ public class A2Component implements Comparable<A2Component> {
                return module;
        }
 
-       A2Branch last() {
+       public A2Branch last() {
                return branches.get(branches.lastKey());
        }
 
-       A2Contribution getContribution() {
+       public A2Contribution getContribution() {
                return contribution;
        }
 
-       String getId() {
+       public String getId() {
                return id;
        }