com.sun.syndication.feed.module.georss
Class GeoRSSModule

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

public abstract class GeoRSSModule
extends ModuleImpl
implements java.lang.Cloneable

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

Version:
$Id: GeoRSSModule.java,v 1.7 2007/04/18 09:59:30 marcwick Exp $
Author:
Marc Wick

Field Summary
protected  AbstractGeometry geometry
           
static java.lang.String GEORSS_GEORSS_URI
          namespace URI for georss simple: "http://www.georss.org/georss"
static java.lang.String GEORSS_GML_URI
          namespace URI for GML georss : "http://www.opengis.net/gml"
static java.lang.String GEORSS_W3CGEO_URI
          namespace URI for w3c georss : "http://www.w3.org/2003/01/geo/wgs84_pos#"
static Namespace GML_NS
          Namespace for gml georss : xmlns:gml="http://www.opengis.net/gml"
static Namespace SIMPLE_NS
          Namespace for georss simple : xmlns:georss="http://www.georss.org/georss"
static Namespace W3CGEO_NS
          Namespace for w3c georss : xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
 
Constructor Summary
protected GeoRSSModule(java.lang.Class beanClass, java.lang.String uri)
           
 
Method Summary
 java.lang.Object clone()
           
 void copyFrom(java.lang.Object 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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geometry

protected AbstractGeometry geometry

GEORSS_GEORSS_URI

public static final java.lang.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 java.lang.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 java.lang.String GEORSS_GML_URI
namespace URI for GML georss : "http://www.opengis.net/gml"

See Also:
Constant Field Values

SIMPLE_NS

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


W3CGEO_NS

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


GML_NS

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

Constructor Detail

GeoRSSModule

protected GeoRSSModule(java.lang.Class beanClass,
                       java.lang.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(java.lang.Object obj)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException