Package com.iizix.urn

Enum NSSResourcePrefix

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

    public enum NSSResourcePrefix
    extends java.lang.Enum<NSSResourcePrefix>
    The possible Resource NSS prefixes.

    The IIZI Resource URN's are formatted as:

    urn:nssPrefix:[spec]:...

    This enum defines the possible nssPrefix values, and for the #FileResource an identification that is specific for that prefix.

    Author:
    Christopher Mindus
    • Enum Constant Summary

      Enum Constants 
      Enum ConstantDescription
      FileResource
      File resource URN NSS prefix "iz-file": just a file resource, no particular identifier is required.
      ProfileImage
      Profile Image resource URN NSS prefix "iz-pimg".
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      java.lang.Stringprefix
      The URN NSS prefix string.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static NSSResourcePrefixvalueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static NSSResourcePrefix[]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

      • ProfileImage

        public static final NSSResourcePrefix ProfileImage
        Profile Image resource URN NSS prefix "iz-pimg".
      • FileResource

        public static final NSSResourcePrefix FileResource
        File resource URN NSS prefix "iz-file": just a file resource, no particular identifier is required.
    • Field Detail

      • prefix

        public final java.lang.String prefix
        The URN NSS prefix string.
    • Method Detail

      • values

        public static NSSResourcePrefix[] 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 (NSSResourcePrefix c : NSSResourcePrefix.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NSSResourcePrefix 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