a:21:{s:9:"#provides";s:15:"dojox.uuid.Uuid";s:9:"#resource";s:12:"uuid/Uuid.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:10:"dojox.uuid";}}s:15:"dojox.uuid.Uuid";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"input";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"String";s:7:"summary";s:504:"A 36-character string that conforms to the UUID spec. examples: var uuid; uuid = new dojox.uuid.Uuid("3b12f1df-5232-4804-897e-917bf397618a"); uuid = new dojox.uuid.Uuid(); // "00000000-0000-0000-0000-000000000000" uuid = new dojox.uuid.Uuid(dojox.uuid.generateRandomUuid()); uuid = new dojox.uuid.Uuid(dojox.uuid.generateTimeBasedUuid()); dojox.uuid.Uuid.setGenerator(dojox.uuid.generateRandomUuid); uuid = new dojox.uuid.Uuid(); dojox.uuid.assert(!uuid.isEqual(dojox.uuid.NIL_UUID));";}}s:6:"source";s:338:" this._uuidString = dojox.uuid.NIL_UUID; if(input){ dojox.uuid.assert(dojo.isString(input)); this._uuidString = input.toLowerCase(); dojox.uuid.assert(this.isValid()); }else{ var ourGenerator = dojox.uuid.Uuid.getGenerator(); if(ourGenerator){ this._uuidString = ourGenerator(); dojox.uuid.assert(this.isValid()); } }";s:7:"summary";s:105:"This is the constructor for the Uuid class. The Uuid class offers methods for inspecting existing UUIDs.";s:9:"classlike";b:1;}s:27:"dojox.uuid.Uuid._uuidString";a:3:{s:8:"instance";s:15:"dojox.uuid.Uuid";s:7:"private";b:1;s:7:"summary";s:0:"";}s:23:"dojox.uuid.Uuid.compare";a:7:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:7:"uuidOne";a:2:{s:4:"type";s:15:"dojox.uuid.Uuid";s:7:"summary";s:104:"Any object that has toString() method that returns a 36-character string that conforms to the UUID spec.";}s:7:"uuidTwo";a:1:{s:4:"type";s:15:"dojox.uuid.Uuid";}s:9:"otherUuid";a:2:{s:4:"type";s:15:"dojox.uuid.Uuid";s:7:"summary";s:104:"Any object that has toString() method that returns a 36-character string that conforms to the UUID spec.";}}s:6:"source";s:81:" return dojox.uuid.Uuid.compare(this, otherUuid); // integer (either 0, 1, or -1)";s:7:"summary";s:60:"Compares this UUID to another UUID, and returns 0, 1, or -1.";s:11:"description";s:120:"This implementation is intended to match the sample implementation in IETF RFC 4122: http://www.ietf.org/rfc/rfc4122.txt";s:7:"returns";s:28:"integer (either 0, 1, or -1)";s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:28:"dojox.uuid.Uuid.setGenerator";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"generator";a:3:{s:8:"optional";b:1;s:4:"type";s:8:"Function";s:7:"summary";s:68:"A UUID generator function, such as dojox.uuid.generateTimeBasedUuid.";}}s:6:"source";s:105:" dojox.uuid.assert(!generator || dojo.isFunction(generator)); dojox.uuid.Uuid._ourGenerator = generator;";s:7:"summary";s:131:"Sets the default generator, which will be used by the "new dojox.uuid.Uuid()" constructor if no parameters are passed in.";}s:28:"dojox.uuid.Uuid.getGenerator";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:110:" return dojox.uuid.Uuid._ourGenerator; // generator (A UUID generator, such as dojox.uuid.TimeBasedGenerator).";s:7:"summary";s:51:"Returns the default generator. See setGenerator().";s:7:"returns";s:68:"generator (A UUID generator, such as dojox.uuid.TimeBasedGenerator).";}s:24:"dojox.uuid.Uuid.toString";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:35:" return this._uuidString; // string";s:7:"summary";s:131:"This method returns a standard 36-character string representing the UUID, such as "3b12f1df-5232-4804-897e-917bf397618a".";s:7:"returns";s:6:"string";s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:23:"dojox.uuid.Uuid.isEqual";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"otherUuid";a:2:{s:4:"type";s:15:"dojox.uuid.Uuid";s:7:"summary";s:104:"Any object that has toString() method that returns a 36-character string that conforms to the UUID spec.";}}s:6:"source";s:50:" return (this.compare(otherUuid) == 0); // boolean";s:7:"summary";s:72:"Returns true if this UUID is equal to the otherUuid, or false otherwise.";s:7:"returns";s:7:"boolean";s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:23:"dojox.uuid.Uuid.isValid";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:33:" return dojox.uuid.isValid(this);";s:7:"summary";s:60:"Returns true if the UUID was initialized with a valid value.";s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:26:"dojox.uuid.Uuid.getVariant";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:36:" return dojox.uuid.getVariant(this);";s:7:"summary";s:121:"Returns a variant code that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.variant values.";s:8:"examples";a:2:{i:0;s:158:"var uuid = new dojox.uuid.Uuid("3b12f1df-5232-4804-897e-917bf397618a"); var variant = uuid.getVariant(); dojox.uuid.assert(variant == dojox.uuid.variant.DCE);";i:1;s:66:""3b12f1df-5232-4804-897e-917bf397618a" ^ (variant "10__" == DCE)";}s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:26:"dojox.uuid.Uuid.getVersion";a:7:{s:4:"type";s:8:"Function";s:6:"source";s:133:" if(!this._versionNumber){ this._versionNumber = dojox.uuid.getVersion(this); } return this._versionNumber; // dojox.uuid.version";s:7:"summary";s:123:"Returns a version number that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.version values.";s:10:"exceptions";s:50:"Throws an Error if this is not a DCE Variant UUID.";s:7:"returns";s:18:"dojox.uuid.version";s:8:"examples";a:1:{i:0;s:165:"var uuid = new dojox.uuid.Uuid("b4308fb0-86cd-11da-a72b-0800200c9a66"); var version = uuid.getVersion(); dojox.uuid.assert(version == dojox.uuid.version.TIME_BASED);";}s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:30:"dojox.uuid.Uuid._versionNumber";a:3:{s:8:"instance";s:15:"dojox.uuid.Uuid";s:7:"private";b:1;s:7:"summary";s:0:"";}s:23:"dojox.uuid.Uuid.getNode";a:6:{s:4:"type";s:8:"Function";s:6:"source";s:182:" if (!this._nodeString) { this._nodeString = dojox.uuid.getNode(this); } return this._nodeString; // String (a 12-character string, which will look something like "917bf397618a")";s:7:"summary";s:199:"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.";s:10:"exceptions";s:48:"Throws an Error if this is not a version 1 UUID.";s:7:"returns";s:77:"String (a 12-character string, which will look something like "917bf397618a")";s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:27:"dojox.uuid.Uuid._nodeString";a:3:{s:8:"instance";s:15:"dojox.uuid.Uuid";s:7:"private";b:1;s:7:"summary";s:0:"";}s:28:"dojox.uuid.Uuid.getTimestamp";a:8:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:10:"returnType";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"String";s:7:"summary";s:93:"Any of these five values: "string", String, "hex", "date", Date";}}s:6:"source";s:1025:" if(!returnType){returnType = null}; switch(returnType){ case "string": case String: return this.getTimestamp(Date).toUTCString(); // String (e.g. "Mon, 16 Jan 2006 20:21:41 GMT") break; case "hex": // Return a 15-character string of hex digits containing the // timestamp for this UUID, with the high-order bits first. if (!this._timestampAsHexString) { this._timestampAsHexString = dojox.uuid.getTimestamp(this, "hex"); } return this._timestampAsHexString; // String (e.g. "1da86cdb4308fb0") break; case null: // no returnType was specified, so default to Date case "date": case Date: // Return a JavaScript Date object. if (!this._timestampAsDate) { this._timestampAsDate = dojox.uuid.getTimestamp(this, Date); } return this._timestampAsDate; // Date break; default: // we got passed something other than a valid returnType dojox.uuid.assert(false, "The getTimestamp() method dojox.uuid.Uuid was passed a bogus returnType: " + returnType); break; }";s:7:"summary";s:240:"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.";s:14:"return_summary";s:446:"Returns the timestamp value as a JavaScript Date object or a 15-character string of hex digits. examples: var uuid = new dojox.uuid.Uuid("b4308fb0-86cd-11da-a72b-0800200c9a66"); var date, string, hexString; date = uuid.getTimestamp(); // returns a JavaScript Date date = uuid.getTimestamp(Date); // string = uuid.getTimestamp(String); // "Mon, 16 Jan 2006 20:21:41 GMT" hexString = uuid.getTimestamp("hex"); // "1da86cdb4308fb0"";s:10:"exceptions";s:48:"Throws an Error if this is not a version 1 UUID.";s:7:"returns";s:130:"String (e.g. "Mon, 16 Jan 2006 20:21:41 GMT")|String (e.g. "1da86cdb4308fb0")|no returnType was specified, so default to Date|Date";s:9:"prototype";s:15:"dojox.uuid.Uuid";}s:37:"dojox.uuid.Uuid._timestampAsHexString";a:3:{s:8:"instance";s:15:"dojox.uuid.Uuid";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"dojox.uuid.Uuid._timestampAsDate";a:3:{s:8:"instance";s:15:"dojox.uuid.Uuid";s:7:"private";b:1;s:7:"summary";s:0:"";}s:10:"dojox.uuid";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}