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 Details

    • UrnValidator

      public UrnValidator()
  • Method Details

    • 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.