Class URNHelper

java.lang.Object
com.helger.base.url.URNHelper

public final class URNHelper extends Object
Helper class for dealing with URNs
Author:
Philip Helger
  • Field Details

  • Method Details

    • isValidURN

      public static boolean isValidURN(@Nullable String sURN)
      Check if the provided string is valid according to RFC 2141. Leading and trailing spaces of the value to check will result in a negative result.
      Parameters:
      sURN - the URN to be validated. May be null.
      Returns:
      true if the provided URN is not empty and matches the regular expression REGEX_URN.
      Since:
      10.0.0