Coverage Report - org.owasp.dependencycheck.data.update.NvdCveInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
NvdCveInfo
N/A
N/A
1
 
 1  
 /*
 2  
  * This file is part of dependency-check-core.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  *
 16  
  * Copyright (c) 2013 Jeremy Long. All Rights Reserved.
 17  
  */
 18  
 package org.owasp.dependencycheck.data.update;
 19  
 
 20  
 /**
 21  
  * A pojo that contains the Url and timestamp of the current NvdCve XML files.
 22  
  *
 23  
  * @author Jeremy Long <jeremy.long@owasp.org>
 24  
  */
 25  
 public class NvdCveInfo {
 26  
 
 27  
     /**
 28  
      * an id.
 29  
      */
 30  
     private String id;
 31  
 
 32  
     /**
 33  
      * Get the value of id.
 34  
      *
 35  
      * @return the value of id
 36  
      */
 37  
     public String getId() {
 38  
         return id;
 39  
     }
 40  
 
 41  
     /**
 42  
      * Set the value of id.
 43  
      *
 44  
      * @param id new value of id
 45  
      */
 46  
     public void setId(String id) {
 47  
         this.id = id;
 48  
     }
 49  
     /**
 50  
      * a url.
 51  
      */
 52  
     private String url;
 53  
 
 54  
     /**
 55  
      * Get the value of url.
 56  
      *
 57  
      * @return the value of url
 58  
      */
 59  
     public String getUrl() {
 60  
         return url;
 61  
     }
 62  
 
 63  
     /**
 64  
      * Set the value of url.
 65  
      *
 66  
      * @param url new value of url
 67  
      */
 68  
     public void setUrl(String url) {
 69  
         this.url = url;
 70  
     }
 71  
     /**
 72  
      * The 1.2 schema URL.
 73  
      */
 74  
     private String oldSchemaVersionUrl;
 75  
 
 76  
     /**
 77  
      * Get the value of oldSchemaVersionUrl.
 78  
      *
 79  
      * @return the value of oldSchemaVersionUrl
 80  
      */
 81  
     public String getOldSchemaVersionUrl() {
 82  
         return oldSchemaVersionUrl;
 83  
     }
 84  
 
 85  
     /**
 86  
      * Set the value of oldSchemaVersionUrl.
 87  
      *
 88  
      * @param oldSchemaVersionUrl new value of oldSchemaVersionUrl
 89  
      */
 90  
     public void setOldSchemaVersionUrl(String oldSchemaVersionUrl) {
 91  
         this.oldSchemaVersionUrl = oldSchemaVersionUrl;
 92  
     }
 93  
     /**
 94  
      * a timestamp - epoch time.
 95  
      */
 96  
     private long timestamp;
 97  
 
 98  
     /**
 99  
      * Get the value of timestamp - epoch time.
 100  
      *
 101  
      * @return the value of timestamp - epoch time
 102  
      */
 103  
     public long getTimestamp() {
 104  
         return timestamp;
 105  
     }
 106  
 
 107  
     /**
 108  
      * Set the value of timestamp - epoch time.
 109  
      *
 110  
      * @param timestamp new value of timestamp - epoch time
 111  
      */
 112  
     public void setTimestamp(long timestamp) {
 113  
         this.timestamp = timestamp;
 114  
     }
 115  
     /**
 116  
      * indicates whether or not this item should be updated.
 117  
      */
 118  
     private boolean needsUpdate = true;
 119  
 
 120  
     /**
 121  
      * Get the value of needsUpdate.
 122  
      *
 123  
      * @return the value of needsUpdate
 124  
      */
 125  
     public boolean getNeedsUpdate() {
 126  
         return needsUpdate;
 127  
     }
 128  
 
 129  
     /**
 130  
      * Set the value of needsUpdate.
 131  
      *
 132  
      * @param needsUpdate new value of needsUpdate
 133  
      */
 134  
     public void setNeedsUpdate(boolean needsUpdate) {
 135  
         this.needsUpdate = needsUpdate;
 136  
     }
 137  
 }