org.apache.shindig.protocol.conversion.xstream
Class RestfullCollectionConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
      extended by org.apache.shindig.protocol.conversion.xstream.RestfullCollectionConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class RestfullCollectionConverter
extends com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter

This converter changes the way in which a collection is serialized


Constructor Summary
RestfullCollectionConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
           
 
Method Summary
 boolean canConvert(Class clazz)
          
 void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
          
 Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader arg0, com.thoughtworks.xstream.converters.UnmarshallingContext arg1)
          
 
Methods inherited from class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
createCollection, mapper, readItem, writeItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestfullCollectionConverter

public RestfullCollectionConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
Parameters:
mapper -
Method Detail

canConvert

public boolean canConvert(Class clazz)

Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
Specified by:
canConvert in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
See Also:
AbstractCollectionConverter.canConvert(java.lang.Class)

marshal

public void marshal(Object source,
                    com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                    com.thoughtworks.xstream.converters.MarshallingContext context)

Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter
Specified by:
marshal in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
See Also:
AbstractCollectionConverter.marshal(java.lang.Object, com.thoughtworks.xstream.io.HierarchicalStreamWriter, com.thoughtworks.xstream.converters.MarshallingContext)

unmarshal

public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader arg0,
                        com.thoughtworks.xstream.converters.UnmarshallingContext arg1)

Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter
Specified by:
unmarshal in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
See Also:
AbstractCollectionConverter.unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader, com.thoughtworks.xstream.converters.UnmarshallingContext)


Copyright © 2007-2012. All Rights Reserved.