|
|||||||||
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.GmlEnvelope
public class GmlEnvelope
A gml:Envelope element, this is used to describe a box using the gml version of our geographic information language. An envelope contains an upper and a lower corner.
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 | |
---|---|
GmlEnvelope()
Constructs an empty gml:Envelope element. |
|
GmlEnvelope(Box box)
Constructs a gml:Envelope by copying from the given box. |
|
GmlEnvelope(java.lang.Double lowerLat,
java.lang.Double lowerLon,
java.lang.Double upperLat,
java.lang.Double upperLon)
Constructs a gml:Envelope with the given coordinates. |
|
GmlEnvelope(Point lower,
Point upper)
Constructs a gml:Envelope with the given lower and upper values. |
Method Summary | |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description and is repeatable. |
static ExtensionDescription |
getDefaultDescription(boolean repeatable)
Returns the suggested extension description with configurable repeatability. |
GmlLowerCorner |
getLowerLeft()
|
GmlUpperCorner |
getUpperRight()
|
void |
setGeoLocation(Point lowerLeft,
Point upperRight)
Sets the coordinates of this box. |
void |
setUpperRight(Point upperRight)
|
protected void |
validate()
Checks the attributes to see if there are any problems. |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable |
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 |
---|
generate, getHandler |
Constructor Detail |
---|
public GmlEnvelope()
public GmlEnvelope(java.lang.Double lowerLat, java.lang.Double lowerLon, java.lang.Double upperLat, java.lang.Double upperLon)
public GmlEnvelope(Point lower, Point upper)
public GmlEnvelope(Box box)
GmlEnvelope(Point, Point)
constructor with the points in the box,
or with nulls if the box itself is null.
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 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 void setUpperRight(Point upperRight)
protected void validate() throws java.lang.IllegalStateException
AbstractExtension
validate
in class AbstractExtension
java.lang.IllegalStateException
- if any problems are found with the
attributes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |