|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.automation.core.utils.Guid
Abstract from IETF Specification:
This specification defines the format of UUIDs (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDentifier). A UUID is 128 bits long, and if generated according to the one of the mechanisms in this document, is either guaranteed to be different from all other UUIDs/GUIDs generated until 3400 A.D. or extremely likely to be different (depending on the mechanism chosen). UUIDs were originally used in the Network Computing System (NCS) [1] and later in the Open Software Foundation's (OSF) Distributed Computing Environment [2].
References:
This specification is derived from the latter specification with the kind permission of the OSF.
Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & Digital
Equipment Corporation, Maynard, Mass.
Copyright (c) 1998 Microsoft.
To anyone who acknowledges that this file is provided "AS IS" without any express or implied warranty: permission to use, copy, modify, and distribute this file for any purpose is hereby granted without fee, provided that the above copyright notices and this notice appears in all source code copies, and that none of the names of Open Software Foundation, Inc., Hewlett-Packard Company, or Digital Equipment Corporation be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Neither Open Software Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment Corporation makes any representations about the suitability of this software for any purpose.
| Constructor Summary | |
|---|---|
Guid()
Creates a variant #1 style identifier and return the instance. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
Returns the hexidecimal string representation of the Guid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Guid()
The lowest addressed octet contains the global/local bit and the unicast/multicast bit, and is the first octet of the address transmitted on an 802.3 LAN.
The adjusted time stamp is split into three fields, and the clockSeq is split into two fields.
|<------------------------- 32 bits -------------------------->|
+--------------------------------------------------------------+
| low 32 bits of time | 0-3 .time_low
+-------------------------------+-------------------------------
| mid 16 bits of time | 4-5 .time_mid
+-------+-----------------------+
| vers. | hi 12 bits of time | 6-7 .time_hi_and_version
+-------+-------+---------------+
|Res| clkSeqHi | 8 .clock_seq_hi_and_reserved
+---------------+
| clkSeqLow | 9 .clock_seq_low
+---------------+----------...-----+
| node ID | 8-16 .node
+--------------------------...-----+
| Method Detail |
public java.lang.String toString()
The toString method will take the binary data in each of
the internal components of the Guid, covert each byte to its hexidecimal
character equivalent, and return the string.
Each internal component representation, however, is separated by a hyphen character, so the total string length is 36 bytes (16 bytes at 2 hexidecimal characters per byte plus four hyphens). Here is an example:
012345678901234567890123456789012345
6ba7b814-9dad-11d1-80b4-00c04fd430c8
This is the preferred format for visual display, which can include use in
#toByteArraypublic static void main(java.lang.String[] args)
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||