View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transformers.xml.xstream;
8   
9   import com.thoughtworks.xstream.converters.Converter;
10  import com.thoughtworks.xstream.converters.MarshallingContext;
11  import com.thoughtworks.xstream.converters.UnmarshallingContext;
12  import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
13  import com.thoughtworks.xstream.io.HierarchicalStreamReader;
14  
15  /**
16   * Used for configuration testing
17   */
18  public class DummyConverter implements Converter
19  {
20      public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
21      {
22          //do nothing
23      }
24  
25      public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
26      {
27          return null;
28      }
29  
30      public boolean canConvert(Class type)
31      {
32          return false;
33      }
34  }