|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NullConverter.java | - | 0% | 33.3% | 16.7% |
|
1 |
package com.thoughtworks.xstream.converters.basic;
|
|
2 |
|
|
3 |
import com.thoughtworks.xstream.converters.Converter;
|
|
4 |
import com.thoughtworks.xstream.converters.ConverterLookup;
|
|
5 |
import com.thoughtworks.xstream.objecttree.ObjectTree;
|
|
6 |
import com.thoughtworks.xstream.xml.XMLReader;
|
|
7 |
import com.thoughtworks.xstream.xml.XMLWriter;
|
|
8 |
|
|
9 |
public class NullConverter implements Converter { |
|
10 |
|
|
11 | 0 |
public boolean canConvert(Class type) { |
12 | 0 |
return type == null; |
13 |
} |
|
14 |
|
|
15 | 0 |
public void toXML(ObjectTree objectGraph, XMLWriter xmlWriter, ConverterLookup converterLookup) { |
16 | 0 |
xmlWriter.startElement("null");
|
17 | 0 |
xmlWriter.endElement(); |
18 |
} |
|
19 |
|
|
20 | 2 |
public void fromXML(ObjectTree objectGraph, XMLReader xmlReader, ConverterLookup converterLookup, Class requiredType) { |
21 |
// no need to do anything
|
|
22 |
} |
|
23 |
} |
|
24 |
|
|