public class GeoRssBox extends ValueConstruct implements Box
AbstractExtension.AttributesHandlerattrNamelocalName, namespace| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
consumeAttributes, equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes, setRequireddisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgenerate, getHandlerpublic 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.public static ExtensionDescription getDefaultDescription(boolean repeatable)
public static ExtensionDescription getDefaultDescription()
public Point getLowerLeft()
getLowerLeft in interface Boxpublic Point getUpperRight()
getUpperRight in interface Boxpublic void setGeoLocation(Point lowerLeft, Point upperRight)
BoxsetGeoLocation in interface BoxlowerLeft - 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.Objectpublic void setValue(java.lang.String v)
ValueConstructsetValue in class ValueConstructv - new value for the value construct or null to reset.