org.opengis.cite.ogcapifeatures10.util

## Class UrnValidator

- java.lang.Object
- - org.opengis.cite.ogcapifeatures10.util.UrnValidator

-     public class UrnValidator
      extends Object

  https://github.com/BruceZu/broken_colored_glass/blob/master/project/src/main/java/URN8141.java
  Author:
    Lyn Goltz

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UrnValidator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isValid(String urn)` Checks if the passed urn is a valid urn according RFC 8141, Section 2 (https://tools.ietf.org/html/rfc8141#section-2)

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UrnValidator

          public UrnValidator()

  - ### Method Detail

    - #### isValid

          public boolean isValid(String urn)

      Checks if the passed urn is a valid urn according RFC 8141, Section 2 (https://tools.ietf.org/html/rfc8141#section-2)
      Parameters:
        `urn` - the urn to check, `null` results in a invalid URN.
      Returns:
        `true` if the urn is valid according to RFC 8141, Section 2, `false` if the urn is null, empty or not valid.

Copyright © 2023 Open Geospatial Consortium. All rights reserved.