View Javadoc

1   /*
2    * Copyright 2000-2005 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }