public final class CheckFlagEvent extends Event
| Constructor and Description |
|---|
CheckFlagEvent(java.lang.String checkName,
CheckFlag flag)
Construct a
CheckFlagEvent |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asLineDelimitedGeoJsonFeatures() |
java.lang.String |
asLineDelimitedGeoJsonFeatures(java.util.function.Consumer<com.google.gson.JsonObject> jsonMutator) |
static com.google.gson.JsonObject |
flagToFeature(CheckFlag flag,
java.util.Map<java.lang.String,java.lang.String> additionalProperties)
Converts give
CheckFlag to GeoJsonObject with additional key-value parameters |
static com.google.gson.JsonObject |
flagToJson(CheckFlag flag,
java.util.Map<java.lang.String,java.lang.String> additionalProperties)
Converts given
CheckFlag to JsonObject with additional key-value parameters |
CheckFlag |
getCheckFlag() |
java.lang.String |
getCheckName() |
com.google.gson.JsonObject |
toGeoJsonFeature() |
com.google.gson.JsonObject |
toGeoJsonFeatureCollection() |
java.lang.String |
toString() |
getTimestamppublic CheckFlagEvent(java.lang.String checkName,
CheckFlag flag)
CheckFlagEventcheckName - name of the check that created this eventflag - CheckFlag generated within this eventpublic static com.google.gson.JsonObject flagToFeature(CheckFlag flag, java.util.Map<java.lang.String,java.lang.String> additionalProperties)
CheckFlag to GeoJsonObject with additional key-value parameterspublic static com.google.gson.JsonObject flagToJson(CheckFlag flag, java.util.Map<java.lang.String,java.lang.String> additionalProperties)
CheckFlag to JsonObject with additional key-value parameterspublic java.lang.String getCheckName()
public com.google.gson.JsonObject toGeoJsonFeature()
public com.google.gson.JsonObject toGeoJsonFeatureCollection()
JsonObject form of the GeoJson FeatureCollection representationpublic java.lang.String toString()
toString in class java.lang.ObjectString form of the GeoJson FeatureCollection representationpublic java.lang.String asLineDelimitedGeoJsonFeatures()
public java.lang.String asLineDelimitedGeoJsonFeatures(java.util.function.Consumer<com.google.gson.JsonObject> jsonMutator)