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 Summary
Enum 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 Summary
Method Summary
Enum Constant Details
BARCODE
Barcode with required type and string: "iz-barcode".IMAGE
Image in bitmap form: "iz-img".SVG
SVG image: "iz-svg".PROFILE_IMAGE
Profile image: "iz-pimg".PROFILE_STRING
Profile string (fullName, firstName, lastName, etc): "iz-pstr".URL
External (web) URL (typically http[s] or ftp[s]): "iz-url".FILE
File (e.g. a PDF accessible from server using file system): "iz-file".
Field Details
nid
The NID string, always starting with "iz-" because the NID is not registered with IANA, and is "private" to the IIZI platform.
Method Details
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
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 nameNullPointerException
- if the argument is null
from
Looks up aNID
Namespace IDentifier from a case sensitive string.- Parameters:
nid
- The NID string to find.- Returns:
- The
NID
for thenid
string, or null if not found.