org.rometools.feed.module.georss
Class GeoRSSModule

java.lang.Object
  extended by com.sun.syndication.feed.module.ModuleImpl
      extended by org.rometools.feed.module.georss.GeoRSSModule
All Implemented Interfaces:
com.sun.syndication.feed.CopyFrom, com.sun.syndication.feed.module.Module, Serializable, Cloneable
Direct Known Subclasses:
GMLModuleImpl, SimpleModuleImpl, W3CGeoModuleImpl

public abstract class GeoRSSModule
extends com.sun.syndication.feed.module.ModuleImpl
implements Cloneable

GeoRSSModule is the main georss interface defining the methods to produce and consume georss elements.

Version:
$Id: GeoRSSModule.java,v 1.8 2007/06/06 09:47:32 marcwick Exp $
Author:
Marc Wick
See Also:
Serialized Form

Field Summary
protected  AbstractGeometry geometry
           
static String GEORSS_GEORSS_URI
          namespace URI for georss simple: "http://www.georss.org/georss"
static String GEORSS_GML_URI
          namespace URI for GML georss : "http://www.opengis.net/gml"
static String GEORSS_W3CGEO_URI
          namespace URI for w3c georss : "http://www.w3.org/2003/01/geo/wgs84_pos#"
static org.jdom.Namespace GML_NS
          Namespace for gml georss : xmlns:gml="http://www.opengis.net/gml"
static org.jdom.Namespace SIMPLE_NS
          Namespace for georss simple : xmlns:georss="http://www.georss.org/georss"
static String version
           
static org.jdom.Namespace W3CGEO_NS
          Namespace for w3c georss : xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
 
Constructor Summary
protected GeoRSSModule(Class beanClass, String uri)
           
 
Method Summary
 Object clone()
           
 void copyFrom(com.sun.syndication.feed.CopyFrom obj)
           
 AbstractGeometry getGeometry()
          returns the geometry
 Position getPosition()
          Convenience method to return point geometry.
 void setGeometry(AbstractGeometry geometry)
          Set geometry of georss element
 void setPosition(Position pos)
          Convenience method to set point geometry.
 
Methods inherited from class com.sun.syndication.feed.module.ModuleImpl
equals, getUri, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.feed.CopyFrom
getInterface
 

Field Detail

geometry

protected AbstractGeometry geometry

version

public static final String version
See Also:
Constant Field Values

GEORSS_GEORSS_URI

public static final String GEORSS_GEORSS_URI
namespace URI for georss simple: "http://www.georss.org/georss"

See Also:
Constant Field Values

GEORSS_W3CGEO_URI

public static final String GEORSS_W3CGEO_URI
namespace URI for w3c georss : "http://www.w3.org/2003/01/geo/wgs84_pos#"

See Also:
Constant Field Values

GEORSS_GML_URI

public static final String GEORSS_GML_URI
namespace URI for GML georss : "http://www.opengis.net/gml"

See Also:
Constant Field Values

SIMPLE_NS

public static final org.jdom.Namespace SIMPLE_NS
Namespace for georss simple : xmlns:georss="http://www.georss.org/georss"


W3CGEO_NS

public static final org.jdom.Namespace W3CGEO_NS
Namespace for w3c georss : xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"


GML_NS

public static final org.jdom.Namespace GML_NS
Namespace for gml georss : xmlns:gml="http://www.opengis.net/gml"

Constructor Detail

GeoRSSModule

protected GeoRSSModule(Class beanClass,
                       String uri)
Method Detail

setGeometry

public void setGeometry(AbstractGeometry geometry)
Set geometry of georss element

Parameters:
geometry - geometry

getGeometry

public AbstractGeometry getGeometry()
returns the geometry

Returns:
geometry

getPosition

public Position getPosition()
Convenience method to return point geometry. Returns null if the geometry is non-point.

Returns:
geometry

setPosition

public void setPosition(Position pos)
Convenience method to set point geometry.


copyFrom

public void copyFrom(com.sun.syndication.feed.CopyFrom obj)
Specified by:
copyFrom in interface com.sun.syndication.feed.CopyFrom

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface com.sun.syndication.feed.module.Module
Overrides:
clone in class com.sun.syndication.feed.module.ModuleImpl
Throws:
CloneNotSupportedException


Copyright © 2013 ROME Project. All Rights Reserved.