public abstract class FlaggedObject
extends java.lang.Object
implements java.io.Serializable, org.openstreetmap.atlas.geography.Located
AtlasObjects flagged by the integrity framework| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
AREA_TAG |
protected static java.lang.String |
COUNTRY_MISSING |
protected static java.lang.String |
EDGE_TAG |
protected static java.lang.String |
ITEM_IDENTIFIER_TAG |
protected static java.lang.String |
ITEM_TYPE_TAG |
protected static java.lang.String |
LINE_TAG |
protected static java.lang.String |
NODE_TAG |
protected static java.lang.String |
OSM_IDENTIFIER_TAG |
protected static java.lang.String |
POINT_TAG |
| Constructor and Description |
|---|
FlaggedObject() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.gson.JsonObject |
asGeoJsonFeature(java.lang.String flagIdentifier)
A GeoJSON representation of the flagged object.
|
abstract org.openstreetmap.atlas.geography.Rectangle |
bounds() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getCountry() |
abstract java.lang.Iterable<org.openstreetmap.atlas.geography.Location> |
getGeometry() |
abstract java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
boolean |
hasCountry() |
int |
hashCode() |
protected static final java.lang.String COUNTRY_MISSING
protected static final java.lang.String AREA_TAG
protected static final java.lang.String EDGE_TAG
protected static final java.lang.String OSM_IDENTIFIER_TAG
protected static final java.lang.String ITEM_IDENTIFIER_TAG
protected static final java.lang.String ITEM_TYPE_TAG
protected static final java.lang.String LINE_TAG
protected static final java.lang.String NODE_TAG
protected static final java.lang.String POINT_TAG
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String getCountry()
public abstract java.lang.Iterable<org.openstreetmap.atlas.geography.Location> getGeometry()
public abstract java.util.Map<java.lang.String,java.lang.String> getProperties()
public abstract com.google.gson.JsonObject asGeoJsonFeature(java.lang.String flagIdentifier)
flagIdentifier - We always will want to know the id of the flag assocaited with this flag object.public abstract org.openstreetmap.atlas.geography.Rectangle bounds()
bounds in interface org.openstreetmap.atlas.geography.Locatedpublic boolean hasCountry()
true if the flagged object has a country code propertypublic int hashCode()
hashCode in class java.lang.Object