1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package net.mchaplin.ioc.xml;
19
20 import net.mchaplin.ioc.model.Component;
21
22 import com.thoughtworks.xstream.converters.Converter;
23 import com.thoughtworks.xstream.converters.MarshallingContext;
24 import com.thoughtworks.xstream.converters.UnmarshallingContext;
25 import com.thoughtworks.xstream.io.HierarchicalStreamReader;
26 import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
27
28 /***
29 * @author mchaplin@users.sourceforge.net
30 *
31 * $Header:
32 * $Revision:
33 * $Date:
34 */
35 public class NameConverter implements Converter {
36
37 /***
38 * @see com.thoughtworks.xstream.converters.Converter#canConvert(java.lang.Class)
39 */
40 public boolean canConvert(Class type) {
41 return Component.class == type;
42 }
43 /***
44 * @see com.thoughtworks.xstream.converters.Converter#marshal(java.lang.Object, com.thoughtworks.xstream.io.HierarchicalStreamWriter, com.thoughtworks.xstream.converters.MarshallingContext)
45 */
46 public void marshal(Object arg0, HierarchicalStreamWriter arg1, MarshallingContext arg2) {
47
48
49 }
50 /***
51 * @see com.thoughtworks.xstream.converters.Converter#unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader, com.thoughtworks.xstream.converters.UnmarshallingContext)
52 */
53 public Object unmarshal(HierarchicalStreamReader arg0, UnmarshallingContext arg1) {
54
55 return null;
56 }
57 }