Package com.iizix.urn

Enum URNLocation

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<URNLocation>

    public enum URNLocation
    extends java.lang.Enum<URNLocation>
    The URN NID location: local file, database or external URL.
    Author:
    Christopher Mindus
    • Enum Constant Summary

      Enum Constants 
      Enum ConstantDescription
      DATABASE
      Database, stored in a database table indirectly defined by depending the WSFileType implementation.
      EXTERNAL_URL
      External URL, typically using the "file:" protocol.
      LOCAL_FILE
      Local file, stored in one of the directories depending on the WSFileType.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static URNLocationvalueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static URNLocation[]values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LOCAL_FILE

        public static final URNLocation LOCAL_FILE
        Local file, stored in one of the directories depending on the WSFileType.
      • DATABASE

        public static final URNLocation DATABASE
        Database, stored in a database table indirectly defined by depending the WSFileType implementation.
      • EXTERNAL_URL

        public static final URNLocation EXTERNAL_URL
        External URL, typically using the "file:" protocol. The URL must be accessible by all servers in a cluster, using (very fast) high-speed data transfer as this resource is NOT cached on each server. The reason for not caching on the server is that this type of resource can be used for large resources such as videos, etc, exceeding the database file storage size of 32 MB (33_554_432 bytes),
    • Method Detail

      • values

        public static URNLocation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (URNLocation c : URNLocation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static URNLocation valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null