1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.portals.graffito.jcr.persistence.collectionconverter;
18
19 import java.util.Iterator;
20
21 /***
22 * Common interface used to persist any kind of Collection or Map.
23 *
24 *
25 * @author <a href="mailto:christophe.lombart@gmail.com">Christophe Lombart</a>
26 *
27 */
28 public interface ManageableCollection
29 {
30 /***
31 * Add an object into this ManageableCollection
32 * @param object the object to add
33 */
34 public void addObject(Object object);
35
36 /***
37 * @return The ManageableCollection iterator
38 */
39 public Iterator getIterator();
40
41 /***
42 * @return The ManageableCollection size
43 */
44 public int getSize();
45
46
47 }