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

File WrappingInstalledExtension.java

 

Coverage histogram

../../../../img/srcFileCovDistChart4.png
78% of files have more coverage

Code metrics

0
10
10
1
99
58
10
1
1
10
1

Classes

Class Line # Actions
WrappingInstalledExtension 35 10 0% 10 12
0.440%
 

Contributing tests

This file is covered by 21 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.extension.wrap;
21   
22    import java.util.Collection;
23    import java.util.Date;
24   
25    import org.xwiki.extension.InstalledExtension;
26    import org.xwiki.extension.LocalExtension;
27   
28    /**
29    * Wrap an installed extension.
30    *
31    * @param <E> the extension type
32    * @version $Id: 741acf10445b225f678159db85a19c190fa2f89c $
33    * @since 4.0M2
34    */
 
35    public class WrappingInstalledExtension<E extends InstalledExtension> extends WrappingLocalExtension<E> implements
36    InstalledExtension
37    {
38    /**
39    * @param installedExtension the wrapped installed extension
40    */
 
41  87 toggle public WrappingInstalledExtension(E installedExtension)
42    {
43  87 super(installedExtension);
44    }
45   
 
46  0 toggle @Override
47    public LocalExtension getLocalExtension()
48    {
49  0 return getWrapped().getLocalExtension();
50    }
51   
 
52  0 toggle @Override
53    public boolean isInstalled()
54    {
55  0 return getWrapped().isInstalled();
56    }
57   
 
58  5 toggle @Override
59    public boolean isValid(String namespace)
60    {
61  5 return getWrapped().isValid(namespace);
62    }
63   
 
64  3 toggle @Override
65    public boolean isInstalled(String namespace)
66    {
67  3 return getWrapped().isInstalled(namespace);
68    }
69   
 
70  25 toggle @Override
71    public Collection<String> getNamespaces()
72    {
73  25 return getWrapped().getNamespaces();
74    }
75   
 
76  0 toggle @Override
77    public boolean isDependency()
78    {
79  0 return getWrapped().isDependency();
80    }
81   
 
82  0 toggle @Override
83    public boolean isDependency(String namespace)
84    {
85  0 return getWrapped().isDependency(namespace);
86    }
87   
 
88  0 toggle @Override
89    public Date getInstallDate(String namespace)
90    {
91  0 return getWrapped().getInstallDate(namespace);
92    }
93   
 
94  0 toggle @Override
95    public Object getNamespaceProperty(String key, String namespace)
96    {
97  0 return getWrapped().getNamespaceProperty(key, namespace);
98    }
99    }