Coverage Report - net.spy.digg.parsers.TopicImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
TopicImpl
100%
10/10
N/A
0
 
 1  
 package net.spy.digg.parsers;
 2  
 
 3  
 import java.io.Serializable;
 4  
 
 5  
 import net.spy.digg.Topic;
 6  
 
 7  
 /**
 8  
  * A topic within digg.
 9  
  */
 10  
 public class TopicImpl implements Topic, Serializable {
 11  
 
 12  
         private final String name;
 13  
         private final String shortName;
 14  
 
 15  
         private String containerName;
 16  
 
 17  
         /**
 18  
          * Construct a topic.
 19  
          */
 20  
         public TopicImpl(String n, String sn) {
 21  402
                 super();
 22  402
                 name=n;
 23  402
                 shortName=sn;
 24  402
         }
 25  
 
 26  
         /* (non-Javadoc)
 27  
          * @see net.spy.digg.Topic#getContainerName()
 28  
          */
 29  
         public String getContainerName() {
 30  3
                 return containerName;
 31  
         }
 32  
 
 33  
         /* (non-Javadoc)
 34  
          * @see net.spy.digg.Topic#getName()
 35  
          */
 36  
         public String getName() {
 37  6
                 return name;
 38  
         }
 39  
 
 40  
         /* (non-Javadoc)
 41  
          * @see net.spy.digg.Topic#getShortName()
 42  
          */
 43  
         public String getShortName() {
 44  3
                 return shortName;
 45  
         }
 46  
 
 47  
         @Override
 48  
         public String toString() {
 49  3
                 return "{Topic name=" + name + "}";
 50  
         }
 51  
 
 52  
         /**
 53  
          * Set the name of this container.
 54  
          */
 55  
         public void setContainerName(String to) {
 56  267
                 containerName=to;
 57  267
         }
 58  
 
 59  
 }