4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
AnnotSugPair.java
Go to the documentation of this file.
1 /*
2  * Project: Server for annotations sharing
3  * Author: Ing. Jaroslav Dytrych idytrych@fit.vutbr.cz
4  * File: AnnotSugPair.java
5  * Description: Class holds pair of suggestion and corresponding anntation
6  */
7 
8 /**
9  * @file AnnotSugPair.java
10  *
11  * @brief Class holds pair of suggestion and corresponding anntation
12  */
13 
14 package cz.vutbr.fit.knot.annotations.modules.suggestionManager;
15 
17 
18 /**
19  * Class holds pair of suggestion and corresponding anntation
20  *
21  * @brief Class holds pair of suggestion and corresponding anntation
22  * @author Martin Petr (xpetrm05)
23  */
24 public class AnnotSugPair {
25 
26  /** Paired suggestion */
28 
29  /** Paired annotation */
31 
32  /**
33  * Constructor
34  */
35  public AnnotSugPair() {
36  }
37 
38  /**
39  * Constructor
40  *
41  * @param suggestion suggestion that will be holded
42  * @param annotation annotation that will be holded
43  */
45  this.suggestion = suggestion;
46  this.annotation = annotation;
47  }
48 
49  /**
50  * Gets paired suggestion.
51  *
52  * @return paired suggestion
53  */
55  return suggestion;
56  }
57 
58  /**
59  * Sets paired annotation.
60  *
61  * @param suggestion paired annotation
62  */
64  this.suggestion = suggestion;
65  }
66 
67  /**
68  * Gets paired annotation.
69  *
70  * @return paired annotation
71  */
73  return annotation;
74  }
75 
76  /**
77  * Sets
78  *
79  * @param annotation
80  */
82  this.annotation = annotation;
83  }
84 } // public class AnnotSugPair
AnnotSugPair(Suggestion suggestion, Annotation annotation)
Class holds pair of suggestion and corresponding anntation.
Class representing suggestion of annotation.
Definition: Suggestion.java:87