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

File DefaultEditorDescriptor.java

 

Coverage histogram

../../../../img/srcFileCovDistChart5.png
74% of files have more coverage

Code metrics

0
10
6
1
89
43
6
0.6
1.67
6
1

Classes

Class Line # Actions
DefaultEditorDescriptor 30 10 0% 6 8
0.550%
 

Contributing tests

No tests hitting this source file were found.

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.edit.internal;
21   
22    import org.xwiki.edit.EditorDescriptor;
23   
24    /**
25    * Default {@link EditorDescriptor} implementation.
26    *
27    * @version $Id: e604755361c724c0302e6eaa708137970331e777 $
28    * @since 8.2RC1
29    */
 
30    public class DefaultEditorDescriptor implements EditorDescriptor
31    {
32    private final String id;
33   
34    private final String name;
35   
36    private final String description;
37   
38    private final String icon;
39   
40    private final String category;
41   
42    /**
43    * Creates a new descriptor for the specified editor.
44    *
45    * @param id the editor id (usually the editor component hint)
46    * @param name the editor pretty name
47    * @param description the editor short description
48    * @param icon the editor icon
49    * @param category the editor category
50    */
 
51  219 toggle public DefaultEditorDescriptor(String id, String name, String description, String icon, String category)
52    {
53  219 this.id = id;
54  219 this.name = name;
55  219 this.description = description;
56  219 this.icon = icon;
57  219 this.category = category;
58    }
59   
 
60  0 toggle @Override
61    public String getId()
62    {
63  0 return this.id;
64    }
65   
 
66  0 toggle @Override
67    public String getName()
68    {
69  0 return this.name;
70    }
71   
 
72  0 toggle @Override
73    public String getDescription()
74    {
75  0 return this.description;
76    }
77   
 
78  0 toggle @Override
79    public String getIcon()
80    {
81  0 return this.icon;
82    }
83   
 
84  219 toggle @Override
85    public String getCategory()
86    {
87  219 return this.category;
88    }
89    }