Clover Coverage Report - XWiki Rendering - Parent POM 4.0-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Mar 12 2012 18:03:13 CET
../../../../../img/srcFileCovDistChart4.png 86% of files have more coverage
11   88   8   1.38
0   52   0.73   8
8     1  
1    
 
  WemSimpleBlockTagNotifier       Line # 31 11 0% 8 13 31.6% 0.31578946
 
No Tests
 
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 java.util.Map;
23   
24    import org.xwiki.rendering.wikimodel.IWemListenerSimpleBlocks;
25    import org.xwiki.rendering.wikimodel.WikiParameters;
26   
27    /**
28    * @version $Id: 67874cdda8290353d0fa2bc208d92381703039b1 $
29    * @since 4.0M1
30    */
 
31    public class WemSimpleBlockTagNotifier extends AbstractTagNotifier
32    implements IWemListenerSimpleBlocks
33    {
34    /**
35    * @param listener
36    */
 
37  6 toggle public WemSimpleBlockTagNotifier(ITagListener listener)
38    {
39  6 super(listener);
40    }
41   
 
42  0 toggle public void beginInfoBlock(String infoType, WikiParameters params)
43    {
44  0 fListener.beginTag(
45    INFO_BLOCK,
46    tagParams(INFO_BLOCK_TYPE, infoType),
47    userParams(params));
48    }
49   
 
50  2 toggle public void beginParagraph(WikiParameters params)
51    {
52  2 fListener.beginTag(PARAGRAPH, EMPTY_MAP, userParams(params));
53    }
54   
 
55  0 toggle public void endInfoBlock(String infoType, WikiParameters params)
56    {
57  0 fListener.endTag(
58    INFO_BLOCK,
59    tagParams(INFO_BLOCK_TYPE, infoType),
60    userParams(params));
61    }
62   
 
63  2 toggle public void endParagraph(WikiParameters params)
64    {
65  2 fListener.endTag(PARAGRAPH, EMPTY_MAP, userParams(params));
66    }
67   
 
68  0 toggle public void onEmptyLines(int count)
69    {
70  0 fListener.onTag(
71    EMPTY_LINES,
72    tagParams(EMPTY_LINES_SIZE, "" + count),
73    EMPTY_MAP);
74    }
75   
 
76  0 toggle public void onHorizontalLine(WikiParameters params)
77    {
78  0 fListener.onTag(HORIZONTAL_LINE, EMPTY_MAP, userParams(params));
79    }
80   
 
81  0 toggle public void onVerbatimBlock(String str, WikiParameters params)
82    {
83  0 Map<String, String> userParams = userParams(params);
84  0 fListener.beginTag(VERBATIM_BLOCK, EMPTY_MAP, userParams);
85  0 fListener.onCDATA(str);
86  0 fListener.endTag(VERBATIM_BLOCK, EMPTY_MAP, userParams);
87    }
88    }