Class CheckFlagEvent
- java.lang.Object
-
- org.openstreetmap.atlas.event.Event
-
- org.openstreetmap.atlas.checks.event.CheckFlagEvent
-
public final class CheckFlagEvent extends org.openstreetmap.atlas.event.Event
-
-
Constructor Summary
Constructors Constructor Description CheckFlagEvent(java.lang.String checkName, CheckFlag flag)Construct aCheckFlagEvent
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasLineDelimitedGeoJsonFeatures()java.lang.StringasLineDelimitedGeoJsonFeatures(java.util.function.Consumer<com.google.gson.JsonObject> jsonMutator)static com.google.gson.JsonObjectflagToFeature(CheckFlag flag, java.util.Map<java.lang.String,java.lang.String> additionalProperties)Converts giveCheckFlagtoGeoJsonObjectwith additional key-value parametersstatic com.google.gson.JsonObjectflagToJson(CheckFlag flag, java.util.Map<java.lang.String,java.lang.String> additionalProperties)Converts givenCheckFlagtoJsonObjectwith additional key-value parametersCheckFlaggetCheckFlag()java.lang.StringgetCheckName()com.google.gson.JsonObjecttoGeoJsonFeature()com.google.gson.JsonObjecttoGeoJsonFeatureCollection()java.lang.StringtoString()
-
-
-
Constructor Detail
-
CheckFlagEvent
public CheckFlagEvent(java.lang.String checkName, CheckFlag flag)Construct aCheckFlagEvent- Parameters:
checkName- name of the check that created this eventflag-CheckFlaggenerated within this event
-
-
Method Detail
-
flagToFeature
public static com.google.gson.JsonObject flagToFeature(CheckFlag flag, java.util.Map<java.lang.String,java.lang.String> additionalProperties)
Converts giveCheckFlagtoGeoJsonObjectwith additional key-value parameters
-
flagToJson
public static com.google.gson.JsonObject flagToJson(CheckFlag flag, java.util.Map<java.lang.String,java.lang.String> additionalProperties)
Converts givenCheckFlagtoJsonObjectwith additional key-value parameters
-
asLineDelimitedGeoJsonFeatures
public java.lang.String asLineDelimitedGeoJsonFeatures()
-
asLineDelimitedGeoJsonFeatures
public java.lang.String asLineDelimitedGeoJsonFeatures(java.util.function.Consumer<com.google.gson.JsonObject> jsonMutator)
-
getCheckName
public java.lang.String getCheckName()
- Returns:
- Name of the check that generated this event
-
toGeoJsonFeature
public com.google.gson.JsonObject toGeoJsonFeature()
- Returns:
- GeoJson Feature representation
-
toGeoJsonFeatureCollection
public com.google.gson.JsonObject toGeoJsonFeatureCollection()
- Returns:
JsonObjectform of the GeoJson FeatureCollection representation
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
Stringform of the GeoJson FeatureCollection representation
-
-