Clover Coverage Report - Google Sitemap Module 2.0.3
Coverage timestamp: Fri Mar 14 2014 11:34:22 CET
../../../../../img/srcFileCovDistChart0.png 20% of files have more coverage
33   210   33   1
0   138   1   33
33     1  
1    
 
  DelegatingXMLStreamWriter       Line # 43 33 0% 33 66 0% 0.0
 
No Tests
 
1    /**
2    * This file Copyright (c) 2013 Magnolia International
3    * Ltd. (http://www.magnolia-cms.com). All rights reserved.
4    *
5    *
6    * This file is dual-licensed under both the Magnolia
7    * Network Agreement and the GNU General Public License.
8    * You may elect to use one or the other of these licenses.
9    *
10    * This file is distributed in the hope that it will be
11    * useful, but AS-IS and WITHOUT ANY WARRANTY; without even the
12    * implied warranty of MERCHANTABILITY or FITNESS FOR A
13    * PARTICULAR PURPOSE, TITLE, or NONINFRINGEMENT.
14    * Redistribution, except as permitted by whichever of the GPL
15    * or MNA you select, is prohibited.
16    *
17    * 1. For the GPL license (GPL), you can redistribute and/or
18    * modify this file under the terms of the GNU General
19    * Public License, Version 3, as published by the Free Software
20    * Foundation. You should have received a copy of the GNU
21    * General Public License, Version 3 along with this program;
22    * if not, write to the Free Software Foundation, Inc., 51
23    * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24    *
25    * 2. For the Magnolia Network Agreement (MNA), this file
26    * and the accompanying materials are made available under the
27    * terms of the MNA which accompanies this distribution, and
28    * is available at http://www.magnolia-cms.com/mna.html
29    *
30    * Any modifications to this file must keep this entire header
31    * intact.
32    *
33    */
34    package info.magnolia.module.googlesitemap.service;
35   
36    import javax.xml.namespace.NamespaceContext;
37    import javax.xml.stream.XMLStreamException;
38    import javax.xml.stream.XMLStreamWriter;
39   
40    /**
41    * Wraps another {@link XMLStreamWriter} and delegates all the functionality to it.
42    */
 
43    class DelegatingXMLStreamWriter implements XMLStreamWriter {
44   
45    private XMLStreamWriter w;
46   
 
47  0 toggle public DelegatingXMLStreamWriter(XMLStreamWriter writer) {
48  0 this.w = writer;
49    }
50   
 
51  0 toggle @Override
52    public void writeStartElement(String localName) throws XMLStreamException {
53  0 w.writeStartElement(localName);
54    }
55   
 
56  0 toggle @Override
57    public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException {
58  0 w.writeStartElement(namespaceURI, localName);
59    }
60   
 
61  0 toggle @Override
62    public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException {
63  0 w.writeStartElement(prefix, localName, namespaceURI);
64    }
65   
 
66  0 toggle @Override
67    public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException {
68  0 w.writeEmptyElement(namespaceURI, localName);
69    }
70   
 
71  0 toggle @Override
72    public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException {
73  0 w.writeEmptyElement(prefix, localName, namespaceURI);
74    }
75   
 
76  0 toggle @Override
77    public void writeEmptyElement(String localName) throws XMLStreamException {
78  0 w.writeEmptyElement(localName);
79    }
80   
 
81  0 toggle @Override
82    public void writeEndElement() throws XMLStreamException {
83  0 w.writeEndElement();
84    }
85   
 
86  0 toggle @Override
87    public void writeEndDocument() throws XMLStreamException {
88  0 w.writeEndDocument();
89    }
90   
 
91  0 toggle @Override
92    public void close() throws XMLStreamException {
93  0 w.close();
94    }
95   
 
96  0 toggle @Override
97    public void flush() throws XMLStreamException {
98  0 w.flush();
99    }
100   
 
101  0 toggle @Override
102    public void writeAttribute(String localName, String value) throws XMLStreamException {
103  0 w.writeAttribute(localName, value);
104    }
105   
 
106  0 toggle @Override
107    public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException {
108  0 w.writeAttribute(prefix, namespaceURI, localName, value);
109    }
110   
 
111  0 toggle @Override
112    public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException {
113  0 w.writeAttribute(namespaceURI, localName, value);
114    }
115   
 
116  0 toggle @Override
117    public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException {
118  0 w.writeNamespace(prefix, namespaceURI);
119    }
120   
 
121  0 toggle @Override
122    public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException {
123  0 w.writeDefaultNamespace(namespaceURI);
124    }
125   
 
126  0 toggle @Override
127    public void writeComment(String data) throws XMLStreamException {
128  0 w.writeComment(data);
129    }
130   
 
131  0 toggle @Override
132    public void writeProcessingInstruction(String target) throws XMLStreamException {
133  0 w.writeProcessingInstruction(target);
134    }
135   
 
136  0 toggle @Override
137    public void writeProcessingInstruction(String target, String data) throws XMLStreamException {
138  0 w.writeProcessingInstruction(target, data);
139    }
140   
 
141  0 toggle @Override
142    public void writeCData(String data) throws XMLStreamException {
143  0 w.writeCData(data);
144    }
145   
 
146  0 toggle @Override
147    public void writeDTD(String dtd) throws XMLStreamException {
148  0 w.writeDTD(dtd);
149    }
150   
 
151  0 toggle @Override
152    public void writeEntityRef(String name) throws XMLStreamException {
153  0 w.writeEntityRef(name);
154    }
155   
 
156  0 toggle @Override
157    public void writeStartDocument() throws XMLStreamException {
158  0 w.writeStartDocument();
159    }
160   
 
161  0 toggle @Override
162    public void writeStartDocument(String version) throws XMLStreamException {
163  0 w.writeStartDocument(version);
164    }
165   
 
166  0 toggle @Override
167    public void writeStartDocument(String encoding, String version) throws XMLStreamException {
168  0 w.writeStartDocument(encoding, version);
169    }
170   
 
171  0 toggle @Override
172    public void writeCharacters(String text) throws XMLStreamException {
173  0 w.writeCharacters(text);
174    }
175   
 
176  0 toggle @Override
177    public void writeCharacters(char[] text, int start, int len) throws XMLStreamException {
178  0 w.writeCharacters(text, start, len);
179    }
180   
 
181  0 toggle @Override
182    public String getPrefix(String uri) throws XMLStreamException {
183  0 return w.getPrefix(uri);
184    }
185   
 
186  0 toggle @Override
187    public void setPrefix(String prefix, String uri) throws XMLStreamException {
188  0 w.setPrefix(prefix, uri);
189    }
190   
 
191  0 toggle @Override
192    public void setDefaultNamespace(String uri) throws XMLStreamException {
193  0 w.setDefaultNamespace(uri);
194    }
195   
 
196  0 toggle @Override
197    public void setNamespaceContext(NamespaceContext context) throws XMLStreamException {
198  0 w.setNamespaceContext(context);
199    }
200   
 
201  0 toggle @Override
202    public NamespaceContext getNamespaceContext() {
203  0 return w.getNamespaceContext();
204    }
205   
 
206  0 toggle @Override
207    public Object getProperty(String name) throws IllegalArgumentException {
208  0 return w.getProperty(name);
209    }
210    }