Enum Class NID
- All Implemented Interfaces:
- Serializable,- Comparable<NID>,- Constable
IIZI Uniform Resource Names (URN) are using the common standard.
A URN normally looks like below, but you can read more at Uniform Resource Name.
The IIZI implementation for URN's to reference various parts in IIZI is:
"urn:NID:NSS:[?+r-component]][?=q-component][#fragment]".
or, in the form of a syntax diagram, as:
In the IIZI case, the use of the some NID's also requires specifying an environment location ({@link NIDLocation}) where the data is stored, e.g. in a database, a server cluster, a server instance (for security), a user (chosen to be identified or not), a user identifier, an application, a specific user session or a specific user client session. In the case a location is used, the resource URL produced from the URN will be private to that particular location, e.g. a server, a user or its application/client session.
Luckily, the abstraction of the final naming depends on so many things, but you don't have to worry about it. Just place it in the correct NID (Name space IDentifier) and leave the complexity to the framework.
The IIZI NID's are not registered with IANA, so they are all prefixed with "iz-" in this enum class.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionBarcode with required type and string: "iz-barcode".File (e.g.Image in bitmap form: "iz-img".Profile image: "iz-pimg".Profile string (fullName, firstName, lastName, etc): "iz-pstr".SVG image: "iz-svg".External (web) URL (typically http[s] or ftp[s]): "iz-url".
- Field SummaryFields
- Method Summary
- Enum Constant Details- BARCODEBarcode with required type and string: "iz-barcode".
- IMAGEImage in bitmap form: "iz-img".
- SVGSVG image: "iz-svg".
- PROFILE_IMAGEProfile image: "iz-pimg".
- PROFILE_STRINGProfile string (fullName, firstName, lastName, etc): "iz-pstr".
- URLExternal (web) URL (typically http[s] or ftp[s]): "iz-url".
- FILEFile (e.g. a PDF accessible from server using file system): "iz-file".
 
- Field Details- nidThe NID string, always starting with "iz-" because the NID is not registered with IANA, and is "private" to the IIZI platform.
 
- Method Details- valuesReturns 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
 
- valueOfReturns 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
 
- fromLooks up a- NIDNamespace IDentifier from a case sensitive string.- Parameters:
- nid- The NID string to find.
- Returns:
- The NIDfor thenidstring, or null if not found.
 
 
