Stop installing librairies during tests
[parser.git] / verigraph / src / main / java / it / polito / escape / verify / model / Link.java
1 /*******************************************************************************
2  * Copyright (c) 2017 Politecnico di Torino and others.
3  *
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Apache License, Version 2.0
6  * which accompanies this distribution, and is available at
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *******************************************************************************/
9
10 package it.polito.escape.verify.model;
11
12 import io.swagger.annotations.ApiModel;
13 import io.swagger.annotations.ApiModelProperty;
14
15 @ApiModel(value = "Link")
16 public class Link {
17         @ApiModelProperty(required = false, hidden = true)
18         private String  link;
19         @ApiModelProperty(required = false, hidden = true)
20         private String  rel;
21
22         public String getLink() {
23                 return link;
24         }
25
26         public void setLink(String link) {
27                 this.link = link;
28         }
29
30         public String getRel() {
31                 return rel;
32         }
33
34         public void setRel(String rel) {
35                 this.rel = rel;
36         }
37
38         @Override
39         public int hashCode() {
40                 final int prime = 31;
41                 int result = 1;
42                 result = prime * result + ((link == null) ? 0 : link.hashCode());
43                 result = prime * result + ((rel == null) ? 0 : rel.hashCode());
44                 return result;
45         }
46
47         @Override
48         public boolean equals(Object obj) {
49                 if (this == obj)
50                         return true;
51                 if (obj == null)
52                         return false;
53                 if (getClass() != obj.getClass())
54                         return false;
55                 Link other = (Link) obj;
56                 if (link == null) {
57                         if (other.link != null)
58                                 return false;
59                 }
60                 else if (!link.equals(other.link))
61                         return false;
62                 if (rel == null) {
63                         if (other.rel != null)
64                                 return false;
65                 }
66                 else if (!rel.equals(other.rel))
67                         return false;
68                 return true;
69         }
70
71 }