Coverage Report - javax.faces.internal.ResultSetBaseCollection
 
Classes in this File Line Coverage Branch Coverage Complexity
ResultSetBaseCollection
0%
0/14
N/A
1.545
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 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,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package javax.faces.internal;
 17  
 
 18  
 import java.util.AbstractCollection;
 19  
 import java.util.Collection;
 20  
 import java.util.Iterator;
 21  
 
 22  
 import javax.faces.model.ResultSetDataModel;
 23  
 
 24  
 /**
 25  
  * @author shot
 26  
  * 
 27  
  * This class might be changed without notice. Please do not use it
 28  
  * excluding the JSF specification part.
 29  
  */
 30  
 public class ResultSetBaseCollection extends AbstractCollection {
 31  
 
 32  0
     ResultSetDataModel.ResultSetMap map = null;
 33  
 
 34  0
     public ResultSetBaseCollection(ResultSetDataModel.ResultSetMap map) {
 35  0
         this.map = map;
 36  0
     }
 37  
 
 38  
     public boolean contains(Object o) {
 39  0
         return map.containsKey(o);
 40  
     }
 41  
 
 42  
     public boolean isEmpty() {
 43  0
         return map.isEmpty();
 44  
     }
 45  
 
 46  
     public Iterator iterator() {
 47  0
         return map.keySet().iterator();
 48  
     }
 49  
 
 50  
     public int size() {
 51  0
         return map.size();
 52  
     }
 53  
 
 54  
     public final boolean add(Object o) {
 55  0
         throw new UnsupportedOperationException();
 56  
     }
 57  
 
 58  
     public final boolean addAll(Collection c) {
 59  0
         throw new UnsupportedOperationException();
 60  
     }
 61  
 
 62  
     public final void clear() {
 63  0
         throw new UnsupportedOperationException();
 64  
     }
 65  
 
 66  
     public final boolean remove(Object o) {
 67  0
         throw new UnsupportedOperationException();
 68  
     }
 69  
 
 70  
     public final boolean removeAll(Collection c) {
 71  0
         throw new UnsupportedOperationException();
 72  
     }
 73  
 
 74  
     public final boolean retainAll(Collection c) {
 75  0
         throw new UnsupportedOperationException();
 76  
     }
 77  
 
 78  
 }