Coverage Report - org.homeunix.thecave.buddi.plugin.api.model.impl.MutableAccountTypeImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
MutableAccountTypeImpl
0%
0/8
N/A
1
 
 1  
 /*
 2  
  * Created on Aug 23, 2007 by wyatt
 3  
  */
 4  
 package org.homeunix.thecave.buddi.plugin.api.model.impl;
 5  
 
 6  
 import org.homeunix.thecave.buddi.model.AccountType;
 7  
 import org.homeunix.thecave.buddi.plugin.api.exception.InvalidValueException;
 8  
 import org.homeunix.thecave.buddi.plugin.api.model.MutableAccountType;
 9  
 
 10  
 public class MutableAccountTypeImpl extends MutableModelObjectImpl implements MutableAccountType {
 11  
 
 12  
         public MutableAccountTypeImpl(AccountType type) {
 13  0
                 super(type);
 14  0
         }
 15  
         
 16  
         public AccountType getType(){
 17  0
                 return (AccountType) getRaw();
 18  
         }
 19  
         
 20  
         public String getName(){
 21  0
                 return getType().getName();
 22  
         }
 23  
         
 24  
         public boolean isCredit(){
 25  0
                 return getType().isCredit();
 26  
         }
 27  
 
 28  
         public void setName(String name) throws InvalidValueException{
 29  0
                 getType().setName(name);
 30  0
         }
 31  
         @Override
 32  
         public String toString() {
 33  0
                 return getName();
 34  
         }
 35  
 }