Coverage Report - org.apache.shindig.social.core.model.ListFieldImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ListFieldImpl
86%
12/14
N/A
1
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements. See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership. The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License. You may obtain a copy of the License at
 9  
  *
 10  
  *     http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied. See the License for the
 16  
  * specific language governing permissions and limitations under the License.
 17  
  */
 18  
 package org.apache.shindig.social.core.model;
 19  
 
 20  
 import org.apache.shindig.social.opensocial.model.ListField;
 21  
 
 22  
 public class ListFieldImpl implements ListField {
 23  
   String type;
 24  
   String value;
 25  
   Boolean primary;
 26  
 
 27  28
   public ListFieldImpl() { }
 28  
 
 29  254
   public ListFieldImpl(String type, String value) {
 30  254
     this.type = type;
 31  254
     this.value = value;
 32  254
   }
 33  
 
 34  
   public String getType() {
 35  96
     return type;
 36  
   }
 37  
 
 38  
   public void setType(String type) {
 39  26
     this.type = type;
 40  26
   }
 41  
 
 42  
   public String getValue() {
 43  88
     return value;
 44  
   }
 45  
 
 46  
   public void setValue(String value) {
 47  31
     this.value = value;
 48  31
   }
 49  
 
 50  
   public Boolean getPrimary() {
 51  46
     return primary;
 52  
   }
 53  
 
 54  
   public void setPrimary(Boolean primary) {
 55  0
     this.primary = primary;
 56  0
   }
 57  
 }