Coverage Report - no.sesat.search.view.output.syndication.modules.SearchResultModuleImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
SearchResultModuleImpl
0%
0/17
N/A
1
 
 1  
 /* Copyright (2007) Schibsted Søk AS
 2  
  * This file is part of SESAT.
 3  
  *
 4  
  *   SESAT is free software: you can redistribute it and/or modify
 5  
  *   it under the terms of the GNU Affero General Public License as published by
 6  
  *   the Free Software Foundation, either version 3 of the License, or
 7  
  *   (at your option) any later version.
 8  
  *
 9  
  *   SESAT is distributed in the hope that it will be useful,
 10  
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  
  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12  
  *   GNU Affero General Public License for more details.
 13  
  *
 14  
  *   You should have received a copy of the GNU Affero General Public License
 15  
  *   along with SESAT.  If not, see <http://www.gnu.org/licenses/>.
 16  
  */
 17  
 /*
 18  
  * SearchResultModuleImpl.java
 19  
  */
 20  
 
 21  
 package no.sesat.search.view.output.syndication.modules;
 22  
 
 23  
 import com.sun.syndication.feed.module.ModuleImpl;
 24  
 import org.jdom.Namespace;
 25  
 
 26  
 /**
 27  
  * @see SearchResultModule
 28  
  */
 29  
 public class SearchResultModuleImpl extends ModuleImpl
 30  
         implements SearchResultModule {
 31  
 
 32  0
     public static final Namespace NS
 33  
             = Namespace.getNamespace(SearchResultModule.PREFIX, SearchResultModule.URI);
 34  
 
 35  
     private String numberOfHits;
 36  
     private String articleAge;
 37  
     private String newsSource;
 38  
 
 39  
     /**
 40  
      * Creates a new instance of this class.
 41  
      */
 42  
     public SearchResultModuleImpl() {
 43  0
         super(SearchResultModule.class, SearchResultModule.URI);
 44  0
     }
 45  
 
 46  
     /**
 47  
      * {@inheritDoc}
 48  
      */
 49  
     public Class getInterface() {
 50  0
         return SearchResultModule.class;
 51  
     }
 52  
 
 53  
     /**
 54  
      * {@inheritDoc}
 55  
      */
 56  
     public void copyFrom(final Object object) {
 57  0
         SearchResultModule m = (SearchResultModule) object;
 58  0
         setNumberOfHits(m.getNumberOfHits());
 59  0
         setArticleAge(m.getArticleAge());
 60  0
     }
 61  
 
 62  
     /**
 63  
      * {@inheritDoc}
 64  
      */
 65  
     public String getNumberOfHits() {
 66  0
         return numberOfHits;
 67  
     }
 68  
 
 69  
     /** {@inheritDoc} */
 70  
     public void setNewsSource(String newsSource) {
 71  0
         this.newsSource = newsSource;
 72  0
     }
 73  
 
 74  
     /** {@inheritDoc} */
 75  
     public String getNewsSource() {
 76  0
         return newsSource;
 77  
     }
 78  
 
 79  
     /**
 80  
      * {@inheritDoc}
 81  
      */
 82  
     public void setNumberOfHits(final String numberOfHits) {
 83  0
         this.numberOfHits = numberOfHits;
 84  0
     }
 85  
 
 86  
     /**
 87  
      * {@inheritDoc}
 88  
      */
 89  
     public String getArticleAge() {
 90  0
         return articleAge;
 91  
     }
 92  
 
 93  
     /**
 94  
      * {@inheritDoc}
 95  
      */
 96  
     public void setArticleAge(final String articleAge) {
 97  0
         this.articleAge = articleAge;
 98  0
     }
 99  
 }