1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package com.xpn.xwiki.api

File DocumentSection.java

 

Coverage histogram

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

Code metrics

0
12
9
1
80
48
9
0.75
1.33
9
1

Classes

Class Line # Actions
DocumentSection 22 12 0% 9 0
1.0100%
 

Contributing tests

This file is covered by 8 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 com.xpn.xwiki.api;
21   
 
22    public class DocumentSection
23    {
24    private int sectionNumber;
25   
26    private int sectionIndex;
27   
28    private String sectionLevel;
29   
30    private String sectionTitle;
31   
 
32  60 toggle public DocumentSection(int sectionNumber, int sectionIndex, String sectionLevel,
33    String sectionTitle)
34    {
35  60 setSectionNumber(sectionNumber);
36  60 setSectionIndex(sectionIndex);
37  60 setSectionLevel(sectionLevel);
38  60 setSectionTitle(sectionTitle);
39    }
40   
 
41  11 toggle public int getSectionNumber()
42    {
43  11 return this.sectionNumber;
44    }
45   
 
46  60 toggle public void setSectionNumber(int sectionNumber)
47    {
48  60 this.sectionNumber = sectionNumber;
49    }
50   
 
51  26 toggle public int getSectionIndex()
52    {
53  26 return this.sectionIndex;
54    }
55   
 
56  60 toggle public void setSectionIndex(int sectionIndex)
57    {
58  60 this.sectionIndex = sectionIndex;
59    }
60   
 
61  28 toggle public String getSectionLevel()
62    {
63  28 return this.sectionLevel;
64    }
65   
 
66  60 toggle public void setSectionLevel(String sectionLevel)
67    {
68  60 this.sectionLevel = sectionLevel;
69    }
70   
 
71  16 toggle public String getSectionTitle()
72    {
73  16 return this.sectionTitle;
74    }
75   
 
76  60 toggle public void setSectionTitle(String sectionTitle)
77    {
78  60 this.sectionTitle = sectionTitle;
79    }
80    }