org.jasig.portlet.weather.dao.accuweather.xstream
Class UnitsConverter

java.lang.Object
  extended by org.jasig.portlet.weather.dao.accuweather.xstream.UnitsConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class UnitsConverter
extends java.lang.Object
implements com.thoughtworks.xstream.converters.Converter

Converter class to convert unit XML into weather object.

Version:
$Id$
Author:
Dustin Schultz

Constructor Summary
UnitsConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class clazz)
           
 void marshal(java.lang.Object arg0, com.thoughtworks.xstream.io.HierarchicalStreamWriter arg1, com.thoughtworks.xstream.converters.MarshallingContext arg2)
           
 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

UnitsConverter

public UnitsConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class clazz)
Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher

marshal

public void marshal(java.lang.Object arg0,
                    com.thoughtworks.xstream.io.HierarchicalStreamWriter arg1,
                    com.thoughtworks.xstream.converters.MarshallingContext arg2)
Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter

unmarshal

public java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                  com.thoughtworks.xstream.converters.UnmarshallingContext context)
Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter


Copyright © 2009 Jasig. All Rights Reserved.