Package com.iizix.urn
Enum NSSResourcePrefix
- java.lang.Object
- java.lang.Enum<NSSResourcePrefix>
- com.iizix.urn.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 Constant Description 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 Type Field Description java.lang.String
prefix
The URN NSS prefix string.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NSSResourcePrefix
valueOf(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.
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.
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 namejava.lang.NullPointerException
- if the argument is null