1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.rendering.internal.parser.confluencexhtml.wikimodel

File ConfluenceLinkWikiReference.java

 

Coverage histogram

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

Code metrics

0
13
13
1
114
71
13
1
1
13
1

Classes

Class Line # Actions
ConfluenceLinkWikiReference 29 13 0% 13 0
1.0100%
 

Contributing tests

This file is covered by 6 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.rendering.internal.parser.confluencexhtml.wikimodel;
21   
22    import org.xwiki.rendering.internal.parser.confluencexhtml.wikimodel.AttachmentTagHandler.ConfluenceAttachment;
23    import org.xwiki.rendering.wikimodel.WikiReference;
24   
25    /**
26    * @version $Id: f33b56eec1d15cb5b9b198e58660cabd8ac65e90 $
27    * @since 5.3M2
28    */
 
29    public class ConfluenceLinkWikiReference extends WikiReference implements UserContainer, AttachmentContainer,
30    PageContainer, SpaceContainer, LabelContainer
31    {
32    private String anchor;
33   
34    private ConfluenceAttachment attachment;
35   
36    private String page;
37   
38    private String space;
39   
40    private String user;
41   
42    private String label;
43   
 
44  74 toggle public ConfluenceLinkWikiReference()
45    {
46  74 super("");
47    }
48   
 
49  78 toggle public String getAnchor()
50    {
51  78 return this.anchor;
52    }
53   
 
54  4 toggle public void setAnchor(String anchor)
55    {
56  4 this.anchor = anchor;
57    }
58   
 
59  33 toggle public ConfluenceAttachment getAttachment()
60    {
61  33 return this.attachment;
62    }
63   
 
64  9 toggle @Override
65    public void setAttachment(ConfluenceAttachment attachment)
66    {
67  9 this.attachment = attachment;
68    }
69   
 
70  30 toggle public String getUser()
71    {
72  30 return this.user;
73    }
74   
 
75  15 toggle @Override
76    public void setUser(String user)
77    {
78  15 this.user = user;
79    }
80   
 
81  81 toggle public String getSpace()
82    {
83  81 return this.space;
84    }
85   
 
86  7 toggle @Override
87    public void setSpace(String space)
88    {
89  7 this.space = space;
90    }
91   
 
92  170 toggle public String getPage()
93    {
94  170 return this.page;
95    }
96   
 
97  48 toggle @Override
98    public void setPage(String page)
99    {
100  48 this.page = page;
101    }
102   
 
103  88 toggle @Override
104    public String getLabel()
105    {
106  88 return this.label;
107    }
108   
 
109  14 toggle @Override
110    public void setLabel(String label)
111    {
112  14 this.label = label;
113    }
114    }