public class

GeoRssBox

extends ValueConstruct
implements Box
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ValueConstruct
       ↳ com.google.gdata.data.geo.impl.GeoRssBox

Class Overview

A georss:box that contains 2 points, like: 42.943 -71.032 43.039 -69.856

Summary

Constants
String NAME
Fields
private Point lowerLeft
private Point upperRight
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
GeoRssBox()
Constructs an empty georss:box element.
GeoRssBox(Double lowerLat, Double lowerLon, Double upperLat, Double upperLon)
Constructs a georss:box element with the given set of points.
GeoRssBox(Point lowerLeft, Point upperRight)
Constructs a georss:box element with the given bounding points.
GeoRssBox(Box box)
Constructs a georss:box element by copying the data from the given box.
Public Methods
static ExtensionDescription getDefaultDescription(boolean repeatable)
Returns the suggested extension description with configurable repeatability.
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description and is repeatable.
Point getLowerLeft()
Gets the lower left point.
Point getUpperRight()
Gets the upper right point.
void setGeoLocation(Point lowerLeft, Point upperRight)
Sets the coordinates of this box.
void setValue(String v)
Sets the value.
String toString()
[Expand]
Inherited Methods
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.geo.Box

Constants

static final String NAME

Constant Value: "box"

Fields

private Point lowerLeft

private Point upperRight

Public Constructors

public GeoRssBox ()

Constructs an empty georss:box element.

public GeoRssBox (Double lowerLat, Double lowerLon, Double upperLat, Double upperLon)

Constructs a georss:box element with the given set of points.

Parameters
lowerLat
lowerLon
upperLat
upperLon

public GeoRssBox (Point lowerLeft, Point upperRight)

Constructs a georss:box element with the given bounding points.

Parameters
lowerLeft
upperRight

public GeoRssBox (Box box)

Constructs a georss:box element by copying the data from the given box. Will call the GeoRssBox(Point, Point) constructor with the parts of the passed in box, or with nulls if the box itself is null.

Parameters
box

Public Methods

public static ExtensionDescription getDefaultDescription (boolean repeatable)

Returns the suggested extension description with configurable repeatability.

Parameters
repeatable

public static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description and is repeatable.

public Point getLowerLeft ()

Gets the lower left point.

public Point getUpperRight ()

Gets the upper right point.

public void setGeoLocation (Point lowerLeft, Point upperRight)

Sets the coordinates of this box. Both lowerLeft and upperRight must be non-null or both must be null. Implementations will throw an IllegalArgumentException if one is null and the other non-null.

Parameters
lowerLeft The lower left coordinate. The latitude of this point must be below the latitude of the upper right coordinate.
upperRight The upper right coordinate. The latitude of this point must be above the latitude of the lower left coordinate.

public void setValue (String v)

Sets the value. Subclasses can override this method to do additional validation of the value.

Parameters
v New value for the value construct or null to reset.

public String toString ()