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

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

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

Converter class to convert forecast XML into forecast objects.

Version:
$Id$
Author:
Dustin Schultz

Constructor Summary
ForecastConverter()
           
ForecastConverter(java.lang.String timeOfDay)
           
 
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

ForecastConverter

public ForecastConverter()

ForecastConverter

public ForecastConverter(java.lang.String timeOfDay)
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.