public interface Check
extends java.io.Serializable
CheckFlag. If the optional is empty then the check didn't find anything to
flag.| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<CheckFlag> |
check(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
The check for the atlas object
|
void |
clear()
Cleanup check to remove any remaining artifacts from execution
|
default java.util.Optional<org.openstreetmap.atlas.geography.atlas.items.complex.Finder> |
finder()
The finder returned will be used to collect the
ComplexEntitys this check will be
applied to. |
java.lang.Iterable<CheckFlag> |
flags(org.openstreetmap.atlas.geography.atlas.Atlas atlas)
|
Challenge |
getChallenge()
Gets a challenge object for the specific check
|
java.lang.String |
getCheckName()
Gets the name of this check
|
void |
logStatus()
Helper for debugging.
|
boolean |
validCheckForCountry(java.lang.String country)
Checks to see whether the check is valid for the given country.
|
boolean |
validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
Checks to see whether the supplied object class type is valid for this particular check
|
java.util.Optional<CheckFlag> check(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
object - The AtlasObject to checkOptional CheckFlag, Optional.EMPTY if check did not reveal
any errorsvoid clear()
default java.util.Optional<org.openstreetmap.atlas.geography.atlas.items.complex.Finder> finder()
ComplexEntitys this check will be
applied to.Optional Finderjava.lang.Iterable<CheckFlag> flags(org.openstreetmap.atlas.geography.atlas.Atlas atlas)
CheckFlags from this check, given AtlasEntitys and
Relations. ComplexEntitys can be added as well, using the appropriate
Finder.atlas - the Atlas to checkCheckFlags from this checkChallenge getChallenge()
Challengejava.lang.String getCheckName()
String namevoid logStatus()
boolean validCheckForCountry(java.lang.String country)
country - country to checktrue if the check is applicable to the given countryboolean validCheckForObject(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
object - The AtlasObject you are checking