Class XAttributeMapConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

    public class XAttributeMapConverter
    extends XConverter
    XStream converter for serializing attribute maps.

    For more information about XStream and its serialization API, please see http://xstream.codehaus.org/.

    Author:
    Christian W. Guenther (christian@deckfour.org)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canConvert​(java.lang.Class c)  
      void marshal​(java.lang.Object obj, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)  
      void registerAliases​(com.thoughtworks.xstream.XStream stream)
      Registers XStream aliases
      java.lang.Object unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XAttributeMapConverter

        public XAttributeMapConverter()
    • Method Detail

      • marshal

        public void marshal​(java.lang.Object obj,
                            com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                            com.thoughtworks.xstream.converters.MarshallingContext context)
      • unmarshal

        public java.lang.Object unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                          com.thoughtworks.xstream.converters.UnmarshallingContext context)
      • canConvert

        public boolean canConvert​(java.lang.Class c)
      • registerAliases

        public void registerAliases​(com.thoughtworks.xstream.XStream stream)
        Description copied from class: XConverter
        Registers XStream aliases
        Overrides:
        registerAliases in class XConverter