|
|||||||||
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.ExtensionPoint
com.google.gdata.data.geo.impl.GeoRssWhere
public class GeoRssWhere
The georss:where element. This can contain other elements, so it is extensible, but it also acts as a Point object. It can also act as a Box as well, and can be extended to support other GML object types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary |
---|
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
GeoRssWhere()
Constructs an empty georss:where element. |
|
GeoRssWhere(Box box)
Constructs a georss:where element containing the given box. |
|
GeoRssWhere(java.lang.Double lat,
java.lang.Double lon)
Constructs a georss:where element containing the given lat/lon point. |
|
GeoRssWhere(java.lang.Double lowerLat,
java.lang.Double lowerLon,
java.lang.Double upperLat,
java.lang.Double upperLon)
Constructs a georss:where element containing the four coordinates that define a box. |
|
GeoRssWhere(Point point)
Constructs a georss:where element containing the given point. |
|
GeoRssWhere(Point lower,
Point upper)
Constructs a georss:where element containing the given gml:lowerCorner and gml:upperCorner elements. |
Method Summary | |
---|---|
void |
clearBox()
Removes the GmlEnvelope element inside this GeoRssWhere. |
void |
clearPoint()
Removes the GmlPoint element inside this GeoRssWhere. |
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. |
void |
generate(XmlWriter w,
ExtensionProfile p)
Generates an XML representation for the extension. |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description and is repeatable. |
static ExtensionDescription |
getDefaultDescription(boolean repeatable)
Returns the default extension description for this element. |
java.lang.Double |
getLatitude()
|
java.lang.Double |
getLongitude()
|
GmlLowerCorner |
getLowerLeft()
|
GmlUpperCorner |
getUpperRight()
|
boolean |
hasBox()
|
boolean |
hasPoint()
|
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the latitude and longitude coordinates of this Point. |
void |
setGeoLocation(Point lowerLeft,
Point upperRight)
Sets the coordinates of this box. |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.Extension |
---|
getHandler |
Constructor Detail |
---|
public GeoRssWhere()
public GeoRssWhere(java.lang.Double lat, java.lang.Double lon)
public GeoRssWhere(Point point)
public GeoRssWhere(java.lang.Double lowerLat, java.lang.Double lowerLon, java.lang.Double upperLat, java.lang.Double upperLon)
public GeoRssWhere(Point lower, Point upper)
public GeoRssWhere(Box box)
Method Detail |
---|
public static ExtensionDescription getDefaultDescription(boolean repeatable)
public static ExtensionDescription getDefaultDescription()
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.public java.lang.Double getLatitude()
getLatitude
in interface Point
public java.lang.Double getLongitude()
getLongitude
in interface Point
public void setGeoLocation(java.lang.Double lat, java.lang.Double lon)
Point
setGeoLocation
in interface Point
lat
- The latitude in degrees, from -90 to 90.lon
- The longitude in degrees, from -180 to 180.public GmlLowerCorner getLowerLeft()
getLowerLeft
in interface Box
public GmlUpperCorner 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 boolean hasPoint()
public boolean hasBox()
public void clearPoint()
public void clearBox()
public void generate(XmlWriter w, ExtensionProfile p) throws java.io.IOException
Extension
generate
in interface Extension
generate
in class AbstractExtension
w
- XML writerp
- extension profile
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |