Enum Class URIScheme

java.lang.Object
java.lang.Enum<URIScheme>
org.apache.jena.rfc3986.URIScheme
All Implemented Interfaces:
Serializable, Comparable<URIScheme>, Constable

public enum URIScheme extends Enum<URIScheme>
URI scheme This also include URN namespaces.
  • Enum Constant Details

    • GENERAL

      public static final URIScheme GENERAL
    • HTTP

      public static final URIScheme HTTP
    • HTTPS

      public static final URIScheme HTTPS
    • URN

      public static final URIScheme URN
    • URN_UUID

      public static final URIScheme URN_UUID
    • UUID

      public static final URIScheme UUID
    • FILE

      public static final URIScheme FILE
    • DID

      public static final URIScheme DID
    • URN_OID

      public static final URIScheme URN_OID
    • URN_EXAMPLE

      public static final URIScheme URN_EXAMPLE
    • OID

      public static final URIScheme OID
    • EXAMPLE

      public static final URIScheme EXAMPLE
  • Method Details

    • values

      public static URIScheme[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static URIScheme valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static URIScheme get(String name)
    • matchesExact

      public static boolean matchesExact(String iriStr, URIScheme scheme)
      Match schema name, not including any urn namespace, case sensitively
    • matchesIgnoreCase

      public static boolean matchesIgnoreCase(String iriStr, URIScheme scheme)
      Match case insensitively
    • fromScheme

      public static boolean fromScheme(String iriStr, URIScheme scheme)
      Match case insensitively
    • isURN

      public final boolean isURN()
    • getSchemeName

      public String getSchemeName()
      Scheme name; no ':'
    • getURNNamespace

      public String getURNNamespace()
      URN namespace name, or null, if not a URN.
    • getName

      public String getName()
      Scheme name,including any URN namespace.
    • getPrefix

      public String getPrefix()
      Initial part of the URI scheme that identifies this scheme. In practice this is the schema name in lower case followed by ':'; for URNs, it includes the URN namespace. if that is one that is covered by the scheme-specific validation rule.