4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
AnnotCloneItem.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: AnnotCloneItem.java
5  * Description: Class representing annotations for clone list item
6  */
7 
8 /**
9  * @file AnnotCloneItem.java
10  *
11  * @brief Class representing annotations for clone list item
12  */
13 
14 package cz.vutbr.fit.knot.annotations.documentCloner;
15 
18 import java.util.List;
19 
20 /**
21  * Class representing annotations for clone list item
22  *
23  * @brief Class representing annotations for clone list item
24  * @author Martin Petr (xpetrm05)
25  */
26 public class AnnotCloneItem {
27 
28  /** Id of old annotation for old document */
29  Integer oldId;
30 
31  /** New annotation for new document */
33 
34  /** List of attributes for new annotation */
35  List<BaseAttribute> newAttributesOfAnnotation;
36 
37  /**
38  * Constructor
39  */
40  public AnnotCloneItem() {
42  }
43 
44  /**
45  * Constructor
46  *
47  * @param oldId Id of old annotation for old document
48  * @param newAnnotation New annotation for new document
49  */
52  this.oldId = oldId;
53  this.newAnnotation = newAnnotation;
54  }
55 
56  /**
57  * Gets id of old annotation for old document.
58  *
59  * @return id of old annotation for old document
60  */
61  public Integer getOldId() {
62  return oldId;
63  }
64 
65  /**
66  * Sets id of old annotation for old document.
67  *
68  * @param oldId id of old annotation for old document
69  */
70  public void setOldId(Integer oldId) {
71  this.oldId = oldId;
72  }
73 
74  /**
75  * Gets new annotation for new document.
76  *
77  * @return new annotation for new document
78  */
80  return newAnnotation;
81  }
82 
83  /**
84  * Sets new annotation for new document.
85  *
86  * @param newAnnotation new annotation for new document
87  */
89  this.newAnnotation = newAnnotation;
90  }
91 
92  /**
93  * Gets list of attributes for new annotation.
94  *
95  * @return list of attributes for new annotation
96  */
97  public List<BaseAttribute> getNewAttributesOfAnnotation() {
99  }
100 
101  /**
102  * Sets list of attributes for new annotation.
103  *
104  * @param newAttributesOfAnnotation list of attributes for new annotation
105  */
106  public void setNewAttributesOfAnnotation(List<BaseAttribute> newAttributesOfAnnotation) {
107  this.newAttributesOfAnnotation = newAttributesOfAnnotation;
108  }
109 
110  @Override
111  public String toString() {
112  return "AnnotCloneItem{" +
113  "oldId=" + oldId +
114  ", newAnnotation=" + newAnnotation +
115  ", newAttributesOfAnnotation=" + newAttributesOfAnnotation + '}';
116  }
117 } // public class AnnotCloneItem
Class representing annotations for clone list item.
AnnotCloneItem(Integer oldId, Annotation newAnnotation)
Base class representing attribute of annotation.
void setNewAttributesOfAnnotation(List< BaseAttribute > newAttributesOfAnnotation)