Coverage Report - org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableAccountTypeImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ImmutableAccountTypeImpl
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * Created on Aug 12, 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.model.ImmutableAccountType;
 8  
 
 9  
 public class ImmutableAccountTypeImpl extends ImmutableModelObjectImpl implements ImmutableAccountType {
 10  
         
 11  
         public ImmutableAccountTypeImpl(AccountType type) {
 12  0
                 super(type);
 13  0
         }
 14  
         
 15  
         public AccountType getType(){
 16  0
                 return (AccountType) getRaw();
 17  
         }
 18  
         
 19  
         public String getName(){
 20  0
                 return getType().getName();
 21  
         }
 22  
         
 23  
         public boolean isCredit(){
 24  0
                 return getType().isCredit();
 25  
         }
 26  
         
 27  
         @Override
 28  
         public String toString() {
 29  0
                 return getName();
 30  
         }
 31  
 }