geo.google.mapping
Class XmlToAddressFunctor

java.lang.Object
  extended by geo.google.mapping.XmlToAddressFunctor
All Implemented Interfaces:
Functor<List<GeoAddress>,String,GeoException>, XmlMappingFunctor<List<GeoAddress>>

public final class XmlToAddressFunctor
extends Object
implements XmlMappingFunctor<List<GeoAddress>>

Maps a kml string returns by google's geocode service to a GeoAddress object.

Author:
jliang

Field Summary
static String JAXB_CONTEXT
           
 
Constructor Summary
XmlToAddressFunctor()
           
 
Method Summary
 List<GeoAddress> execute(String xml)
           
static XmlToAddressFunctor getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXB_CONTEXT

public static final String JAXB_CONTEXT
See Also:
Constant Field Values
Constructor Detail

XmlToAddressFunctor

public XmlToAddressFunctor()
Method Detail

getInstance

public static XmlToAddressFunctor getInstance()

execute

public List<GeoAddress> execute(String xml)
                         throws GeoException
Specified by:
execute in interface Functor<List<GeoAddress>,String,GeoException>
Throws:
GeoException


Copyright © 2008. All Rights Reserved.