Object
Object
Function
Must be true for the assertion to succeed.
A string describing the assertion. throws: Throws an Error if 'booleanValue' is false.
Throws an exception if the assertion fails.
If the asserted condition is true, this method does nothing. If the condition is false, we throw an error with a error message.
Function
This function returns the Nil UUID: "00000000-0000-0000-0000-000000000000".
The Nil UUID is described in section 4.1.7 of RFC 4122: http://tools.ietf.org/html/rfc4122#section-4.1.7 examples: var string = dojox.uuid.generateNilUuid();
String
Function
Returns true if the UUID was initialized with a valid value.
boolean
Function
Returns a variant code that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.variant values.
dojox.uuid.variant
var variant = dojox.uuid.getVariant("3b12f1df-5232-4804-897e-917bf397618a"); dojox.uuid.assert(variant == dojox.uuid.variant.DCE);
"3b12f1df-5232-4804-897e-917bf397618a" ^ (variant "10__" == DCE)
Function
Returns a version number that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.version values.
Throws an Error if this is not a DCE Variant UUID.
dojox.uuid.version
var version = dojox.uuid.getVersion("b4308fb0-86cd-11da-a72b-0800200c9a66"); dojox.uuid.assert(version == dojox.uuid.version.TIME_BASED);
Function
If this is a version 1 UUID (a time-based UUID), getNode() returns a 12-character string with the "node" or "pseudonode" portion of the UUID, which is the rightmost 12 characters.
Throws an Error if this is not a version 1 UUID.
String (a 12-character string, which will look something like "917bf397618a")
Function
Any of these five values: "string", String, "hex", "date", Date
If this is a version 1 UUID (a time-based UUID), this method returns the timestamp value encoded in the UUID. The caller can ask for the timestamp to be returned either as a JavaScript Date object or as a 15-character string of hex digits.
Returns the timestamp value as a JavaScript Date object or a 15-character string of hex digits. examples: var uuidString = "b4308fb0-86cd-11da-a72b-0800200c9a66"; var date, string, hexString; date = dojox.uuid.getTimestamp(uuidString); // returns a JavaScript Date date = dojox.uuid.getTimestamp(uuidString, Date); // string = dojox.uuid.getTimestamp(uuidString, String); // "Mon, 16 Jan 2006 20:21:41 GMT" hexString = dojox.uuid.getTimestamp(uuidString, "hex"); // "1da86cdb4308fb0"
Throws an Error if this is not a version 1 UUID.
String (e.g. "Mon, 16 Jan 2006 20:21:41 GMT")|String (e.g. "1da86cdb4308fb0")|no returnType was specified, so default to Date|Date
Object
Object
Object