public interface GeoPointBinder extends TypeBinder<GeoPointBinding>, PropertyBinder<GeoPointBinding>
GeoPoint field, representing a point on earth.
These fields allow spatial predicates such as "within" (is the point within a circle, a bounding box, ...), sorts by distance to another point, ...
GeoPointBinding,
create(),
latitude(),
longitude()| Modifier and Type | Method and Description |
|---|---|
static GeoPointBinder |
create() |
GeoPointBinder |
fieldName(String fieldName) |
default void |
initialize(GeoPointBinding annotation)
Initializes the parameters of this binder with the attributes of the given annotation.
|
static LatitudeLongitudeMarkerBinder |
latitude() |
static LatitudeLongitudeMarkerBinder |
longitude() |
GeoPointBinder |
markerSet(String markerSet) |
GeoPointBinder |
projectable(Projectable projectable) |
GeoPointBinder |
sortable(Sortable sortable) |
bindbindGeoPointBinder fieldName(String fieldName)
fieldName - The name of the GeoPoint field.
If used on a property, this defaults to the name of that property.
Otherwise, the name must be defined explicitly.this, for method chaining.GeoPointBinder projectable(Projectable projectable)
projectable - Whether projections are enabled for the GeoPoint field.this, for method chaining.GenericField.projectable(),
ProjectableGeoPointBinder sortable(Sortable sortable)
sortable - Whether the GeoPoint field should be sortable by distance.this, for method chaining.GenericField.sortable(),
SortableGeoPointBinder markerSet(String markerSet)
markerSet - The name of the "marker set".
This is used to discriminate between multiple pairs of latitude/longitude markers:
assign a marker set when building each marker,
then select the marker set here.this, for method chaining.default void initialize(GeoPointBinding annotation)
TypeBinderinitialize in interface PropertyBinder<GeoPointBinding>initialize in interface TypeBinder<GeoPointBinding>annotation - An annotation to extract parameters from.static GeoPointBinder create()
GeoPointBinder.static LatitudeLongitudeMarkerBinder latitude()
MarkerBinder for the latitude, to be applied on a property.LatitudeLongitudeMarkerBinderstatic LatitudeLongitudeMarkerBinder longitude()
MarkerBinder for the longitude, to be applied on a property.LatitudeLongitudeMarkerBinderCopyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.