Class UnclosedWays.UnclosedWaysCheck

    • Field Detail

      • code

        public final int code
        The unique numeric code for this check
      • key

        public final String key
        The OSM key checked
      • specialValues

        private final Set<String> specialValues
        The special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false
      • ignore

        private final boolean ignore
        The boolean indicating if special values must be ignored or considered only
    • Constructor Detail

      • UnclosedWaysCheck

        UnclosedWaysCheck​(int code,
                          String key,
                          String engMessage)
        Constructs a new UnclosedWaysCheck.
        Parameters:
        code - The unique numeric code for this check
        key - The OSM key checked
        engMessage - The English message
      • UnclosedWaysCheck

        UnclosedWaysCheck​(int code,
                          String key,
                          String engMessage,
                          Set<String> ignoredValues)
        Constructs a new UnclosedWaysCheck.
        Parameters:
        code - The unique numeric code for this check
        key - The OSM key checked
        engMessage - The English message
        ignoredValues - The ignored values.
      • UnclosedWaysCheck

        UnclosedWaysCheck​(int code,
                          String key,
                          String engMessage,
                          Set<String> specialValues,
                          boolean ignore)
        Constructs a new UnclosedWaysCheck.
        Parameters:
        code - The unique numeric code for this check
        key - The OSM key checked
        engMessage - The English message
        specialValues - The special values, to be ignored if ignore is set to true; to be considered only if ignore is set to false
        ignore - indicates if special values must be ignored or considered only
    • Method Detail

      • getTestError

        public final TestError getTestError​(Way w,
                                            UnclosedWays test)
        Returns the test error of the given way, if any.
        Parameters:
        w - The way to check
        test - parent test
        Returns:
        The test error if the way is erroneous, null otherwise