Package com.iizix.urn

Enum Class NSSResourcePrefix

java.lang.Object
java.lang.Enum<NSSResourcePrefix>
com.iizix.urn.NSSResourcePrefix
All Implemented Interfaces:
Serializable, Comparable<NSSResourcePrefix>, Constable

public enum NSSResourcePrefix extends 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 Details

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

    • prefix

      public final String prefix
      The URN NSS prefix string.
  • Method Details

    • values

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