public class GeoRssBox extends ValueConstruct implements Box
AbstractExtension.AttributesHandler
attrName
localName, 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, setRequired
disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
generate, getHandler
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.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.