pl.edu.agh.cast.importer.base.template.internal
Class SimpleDateFormatXStreamConverter

java.lang.Object
  extended by pl.edu.agh.cast.importer.base.template.internal.SimpleDateFormatXStreamConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class SimpleDateFormatXStreamConverter
extends Object
implements com.thoughtworks.xstream.converters.Converter

Converts SimpleDateFormat objects into XML.

Author:
AGH CAST Team

Field Summary
static String TAG
          XML tag for SimpleDateFormat objects.
 
Constructor Summary
SimpleDateFormatXStreamConverter()
           
 
Method Summary
 boolean canConvert(Class arg0)
          
 void marshal(Object value, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
          
 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
 

Field Detail

TAG

public static final String TAG
XML tag for SimpleDateFormat objects.

See Also:
Constant Field Values
Constructor Detail

SimpleDateFormatXStreamConverter

public SimpleDateFormatXStreamConverter()
Method Detail

marshal

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

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

unmarshal

public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                        com.thoughtworks.xstream.converters.UnmarshallingContext context)

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

canConvert

public boolean canConvert(Class arg0)

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


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.