1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.observation.remote

File RemoteEventData.java

 

Coverage histogram

../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
7
7
1
106
38
7
1
1
7
1

Classes

Class Line # Actions
RemoteEventData 30 7 0% 7 0
1.0100%
 

Contributing tests

This file is covered by 2 tests. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.observation.remote;
21   
22    import java.io.Serializable;
23   
24    /**
25    * Represents a remote event with all its datas.
26    *
27    * @version $Id: 6710c0aa672d060382390eee5e6feb30a72ce622 $
28    * @since 2.0M3
29    */
 
30    public class RemoteEventData implements Serializable
31    {
32    /**
33    * The version identifier for this Serializable class. Increment only if the <i>serialized</i> form of the class
34    * changes.
35    */
36    private static final long serialVersionUID = 1L;
37   
38    /**
39    * The event type.
40    */
41    private Serializable event;
42   
43    /**
44    * The event source.
45    */
46    private Serializable source;
47   
48    /**
49    * The event data.
50    */
51    private Serializable data;
52   
53    /**
54    * @return the event type.
55    */
 
56  1125 toggle public Serializable getEvent()
57    {
58  1126 return this.event;
59    }
60   
61    /**
62    * @param event the event type.
63    */
 
64  35 toggle public void setEvent(Serializable event)
65    {
66  35 this.event = event;
67    }
68   
69    /**
70    * @return the event source.
71    */
 
72  46 toggle public Serializable getSource()
73    {
74  46 return this.source;
75    }
76   
77    /**
78    * @param source the event source.
79    */
 
80  35 toggle public void setSource(Serializable source)
81    {
82  35 this.source = source;
83    }
84   
85    /**
86    * @return the event data.
87    */
 
88  46 toggle public Serializable getData()
89    {
90  46 return this.data;
91    }
92   
93    /**
94    * @param data the event data.
95    */
 
96  35 toggle public void setData(Serializable data)
97    {
98  35 this.data = data;
99    }
100   
 
101  34 toggle @Override
102    public String toString()
103    {
104  34 return "event: [" + getEvent() + "], source: [" + getSource() + "], data: [" + getData() + "]";
105    }
106    }