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

File WemListTagNotifier.java

 

Coverage histogram

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

Code metrics

4
17
15
1
112
70
17
1
1.13
15
1.13

Classes

Class Line # Actions
WemListTagNotifier 29 17 0% 17 22
0.388888938.9%
 

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.rendering.wikimodel.xml;
21   
22    import org.xwiki.rendering.wikimodel.IWemListenerList;
23    import org.xwiki.rendering.wikimodel.WikiParameters;
24   
25    /**
26    * @version $Id: c1e59476f66dbbc6798d87d9747ab32bd3647b60 $
27    * @since 4.0M1
28    */
 
29    public class WemListTagNotifier extends AbstractTagNotifier
30    implements
31    IWemListenerList
32    {
33    /**
34    * @param listener
35    */
 
36  6 toggle public WemListTagNotifier(ITagListener listener)
37    {
38  6 super(listener);
39    }
40   
 
41  0 toggle public void beginDefinitionDescription()
42    {
43  0 fListener.beginTag(DEFINITION_DESCRIPTION, EMPTY_MAP, EMPTY_MAP);
44    }
45   
 
46  0 toggle public void beginDefinitionList(WikiParameters params)
47    {
48  0 fListener.beginTag(DEFINITION_LIST, EMPTY_MAP, EMPTY_MAP);
49    }
50   
 
51  0 toggle public void beginDefinitionTerm()
52    {
53  0 fListener.beginTag(DEFINITION_TERM, EMPTY_MAP, EMPTY_MAP);
54    }
55   
 
56  3 toggle public void beginList(WikiParameters params, boolean ordered)
57    {
58  3 String tagName = ordered ? LIST_ORDERED : LIST_UNORDERED;
59  3 fListener.beginTag(tagName, EMPTY_MAP, userParams(params));
60    }
61   
 
62  5 toggle public void beginListItem()
63    {
64  5 fListener.beginTag(LIST_ITEM, EMPTY_MAP, EMPTY_MAP);
65    }
66   
 
67  0 toggle public void beginQuotation(WikiParameters params)
68    {
69  0 fListener.beginTag(QUOTATION, EMPTY_MAP, userParams(params));
70    }
71   
 
72  0 toggle public void beginQuotationLine()
73    {
74  0 fListener.beginTag(QUOTATION_LINE, EMPTY_MAP, EMPTY_MAP);
75    }
76   
 
77  0 toggle public void endDefinitionDescription()
78    {
79  0 fListener.endTag(DEFINITION_DESCRIPTION, EMPTY_MAP, EMPTY_MAP);
80    }
81   
 
82  0 toggle public void endDefinitionList(WikiParameters params)
83    {
84  0 fListener.endTag(DEFINITION_LIST, EMPTY_MAP, userParams(params));
85    }
86   
 
87  0 toggle public void endDefinitionTerm()
88    {
89  0 fListener.endTag(DEFINITION_TERM, EMPTY_MAP, EMPTY_MAP);
90    }
91   
 
92  3 toggle public void endList(WikiParameters params, boolean ordered)
93    {
94  3 String tagName = ordered ? LIST_ORDERED : LIST_UNORDERED;
95  3 fListener.endTag(tagName, EMPTY_MAP, userParams(params));
96    }
97   
 
98  5 toggle public void endListItem()
99    {
100  5 fListener.endTag(LIST_ITEM, EMPTY_MAP, EMPTY_MAP);
101    }
102   
 
103  0 toggle public void endQuotation(WikiParameters params)
104    {
105  0 fListener.endTag(QUOTATION, EMPTY_MAP, userParams(params));
106    }
107   
 
108  0 toggle public void endQuotationLine()
109    {
110  0 fListener.endTag(QUOTATION_LINE, EMPTY_MAP, EMPTY_MAP);
111    }
112    }