Class Index | File Index

Classes


Class UUID


Defined in: uuid.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
UUID()
Field Summary
Field Attributes Field Name and Description
 
List of UUID field values (as binary bit string values).
 
128-bit binary bit string representation.
<static> <constant>  
Names of each UUID field.
<static> <constant>  
Sizes of each UUID field.
 
List of UUID field values (as hexadecimal string values).
 
UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
 
List of UUID field values (as integer values).
<static>  
Preserves the value of 'UUID' global variable set before the load of UUID.js.
 
urn
UUID string representation as a URN ("urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
 
UUID version number defined in RFC 4122.
Method Summary
Method Attributes Method Name and Description
 
equals(uuid)
Tests if two UUID objects are equal.
<static>  
UUID.generate()
The simplest function to get an UUID string.
<static>  
UUID.genV1()
Generates a version 1 UUID.
<static>  
UUID.genV4()
Generates a version 4 UUID.
<static>  
Reinstalls UUID.generate method to emulate the interface of UUID.js version 2.x.
<static>  
UUID.parse(strId)
Converts hexadecimal UUID string to an UUID object.
<static>  
UUID.resetState()
Re-initializes version 1 UUID state.
 
Returns UUID string representation.
Class Detail
UUID()
Field Detail
{string[]} bitFields
List of UUID field values (as binary bit string values).

{string} bitString
128-bit binary bit string representation.

<static> <constant> {string[]} UUID.FIELD_NAMES
Names of each UUID field.
Since:
3.0

<static> <constant> {int[]} UUID.FIELD_SIZES
Sizes of each UUID field.
Since:
3.0

{string[]} hexFields
List of UUID field values (as hexadecimal string values).

{string} hexString
UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").

{int[]} intFields
List of UUID field values (as integer values).

<static> {object} UUID.overwrittenUUID
Preserves the value of 'UUID' global variable set before the load of UUID.js.
Since:
3.2

{string} urn
UUID string representation as a URN ("urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").

{int} version
UUID version number defined in RFC 4122.
Method Detail
{bool} equals(uuid)
Tests if two UUID objects are equal.
Parameters:
{UUID} uuid
Returns:
{bool} True if two UUID objects are equal.

<static> {string} UUID.generate()
The simplest function to get an UUID string.
Returns:
{string} A version 4 UUID string.

<static> {UUID} UUID.genV1()
Generates a version 1 UUID.
Since:
3.0
Returns:
{UUID} A version 1 UUID object.

<static> {UUID} UUID.genV4()
Generates a version 4 UUID.
Since:
3.0
Returns:
{UUID} A version 4 UUID object.

<static> UUID.makeBackwardCompatible()
Reinstalls UUID.generate method to emulate the interface of UUID.js version 2.x.
Deprecated:
Version 2.x. compatible interface is not recommended.
Since:
3.1

<static> {UUID} UUID.parse(strId)
Converts hexadecimal UUID string to an UUID object.
Parameters:
{string} strId
UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
Since:
3.0
Returns:
{UUID} UUID object or null.

<static> UUID.resetState()
Re-initializes version 1 UUID state.
Since:
3.0

{string} toString()
Returns UUID string representation.
Returns:
{string} UUID#hexString.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 21 2012 22:31:42 GMT+0900 (JST)