|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ValueConstruct
com.google.gdata.data.geo.impl.GeoRssBox
public class GeoRssBox
A georss:box that contains 2 points, like:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary |
---|
Fields inherited from class com.google.gdata.data.ValueConstruct |
---|
attrName |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
GeoRssBox()
Constructs an empty georss:box element. |
|
GeoRssBox(Box box)
Constructs a georss:box element by copying the data from the given box. |
|
GeoRssBox(java.lang.Double lowerLat,
java.lang.Double lowerLon,
java.lang.Double upperLat,
java.lang.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. |
Method Summary | |
---|---|
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description and is repeatable. |
static ExtensionDescription |
getDefaultDescription(boolean repeatable)
Returns the suggested extension description with configurable repeatability. |
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(java.lang.String v)
Sets the value. |
java.lang.String |
toString()
|
Methods inherited from class com.google.gdata.data.ValueConstruct |
---|
consumeAttributes, equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes, setRequired |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.Extension |
---|
generate, getHandler |
Constructor Detail |
---|
public GeoRssBox()
public GeoRssBox(java.lang.Double lowerLat, java.lang.Double lowerLon, java.lang.Double upperLat, java.lang.Double upperLon)
public GeoRssBox(Point lowerLeft, Point upperRight)
public GeoRssBox(Box box)
GeoRssBox(Point, Point)
constructor with the parts
of the passed in box, or with nulls if the box itself is null.
Method Detail |
---|
public static ExtensionDescription getDefaultDescription(boolean repeatable)
public static ExtensionDescription getDefaultDescription()
public Point getLowerLeft()
getLowerLeft
in interface Box
public Point getUpperRight()
getUpperRight
in interface Box
public void setGeoLocation(Point lowerLeft, Point upperRight)
Box
setGeoLocation
in interface Box
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 java.lang.String toString()
toString
in class java.lang.Object
public void setValue(java.lang.String v)
ValueConstruct
setValue
in class ValueConstruct
v
- new value for the value construct or null
to reset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |