Coverage Report - org.jtheque.primary.view.impl.fb.PersonFormBean
 
Classes in this File Line Coverage Branch Coverage Complexity
PersonFormBean
0 %
0/14
N/A
1
 
 1  
 package org.jtheque.primary.view.impl.fb;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 import org.jtheque.core.utils.db.Note;
 20  
 import org.jtheque.primary.od.able.Person;
 21  
 import org.jtheque.primary.od.able.SimpleData;
 22  
 import org.jtheque.primary.view.able.fb.IPersonFormBean;
 23  
 
 24  
 /**
 25  
  * A form bean for an author.
 26  
  *
 27  
  * @author Baptiste Wicht
 28  
  */
 29  0
 public final class PersonFormBean implements IPersonFormBean {
 30  
         private String name;
 31  
         private String firstName;
 32  
         private SimpleData country;
 33  
         private Note note;
 34  
 
 35  
         @Override
 36  
         public void setName(String name){
 37  0
                 this.name = name;
 38  0
         }
 39  
 
 40  
         @Override
 41  
         public void setFirstName(String firstName){
 42  0
                 this.firstName = firstName;
 43  0
         }
 44  
 
 45  
         @Override
 46  
         public void setNote(Note note){
 47  0
                 this.note = note;
 48  0
         }
 49  
 
 50  
         @Override
 51  
         public void setCountry(SimpleData country){
 52  0
                 this.country = country;
 53  0
         }
 54  
 
 55  
         @Override
 56  
         public void fillPerson(Person person){
 57  0
                 person.setName(name);
 58  0
                 person.setFirstName(firstName);
 59  0
                 person.setNote(note);
 60  0
                 person.setTheCountry(country);
 61  0
         }
 62  
 }