org.apache.commons.id.uuid
Interface Constants

All Known Implementing Classes:
StateHelper, UUID, VersionFourGenerator, VersionOneGenerator

public interface Constants

Constant values commonly needed in the uuid classes.

Version:
$Revision: 480488 $ $Date: 2006-11-29 08:57:26 +0000 (Wed, 29 Nov 2006) $
Author:
Commons-Id Team

Field Summary
static short CLOCK_SEQ_HI_AND_RESERVED_BYTE_8
          Byte position of the clock sequence and reserved field
static int FORMAT_POSITION1
          Insertion point 1 for dashes in the string format
static int FORMAT_POSITION2
          Insertion point 2 for dashes in the string format
static int FORMAT_POSITION3
          Insertion point 3 for dashes in the string format
static int FORMAT_POSITION4
          Insertion point 4 for dashes in the string format
static java.lang.String MD5_ENCODING
          Constants that correspond to the encoding being used, a la http://www.ietf.org/internet-drafts/draft-mealling-uuid-urn-04.txt.
static java.lang.String SHA1_ENCODING
           
static short TIME_HI_AND_VERSION_BYTE_6
          Byte position of the clock sequence and reserved field
static int TIME_HI_BYTE_LEN
          Byte length of time low field
static int TIME_HI_START_POS
          uuid array position start of hi field
static int TIME_HI_TS_POS
          Timestamp byte[] position hi field
static int TIME_LOW_BYTE_LEN
          Byte length of time low field
static int TIME_LOW_START_POS
          uuid array position start of time low field
static int TIME_LOW_TS_POS
          Timestamp byte[] position of time low field
static int TIME_MID_BYTE_LEN
          Byte length of time low field
static int TIME_MID_START_POS
          uuid array position start of mid field
static int TIME_MID_TS_POS
          Timestamp byte[] position mid field
static int[] TOKEN_LENGTHS
          Array to check tokenized UUID's segment lengths
static int TOKENS_IN_UUID
          Token length of '-' separated tokens.
static java.lang.String URN_PREFIX
          The string prefix for a urn UUID identifier.
static int UUID_BIT_LENGTH
          Bits in a UUID.
static int UUID_BYTE_LENGTH
          Number of bytes in a UUID.
static int UUID_FORMATTED_LENGTH
          Chars in a UUID String.
static int UUID_UNFORMATTED_LENGTH
          Chars in a UUID String.
static int VARIANT_FUTURE
          UUID variant bits described in the IETF Draft MSB order, this is the "Future Reserved variant 1 1 1 x with unknown bits as 0
static int VARIANT_IETF_DRAFT
          UUID variant bits described in the IETF Draft MSB order, this is the IETF Draft memo variant field 1 0 x with unknown bits as 0
static int VARIANT_MS
          UUID variant bits described in the IETF Draft MSB order, this is the IETF Draft "Microsoft Corporation" field variant 1 1 0 x with unknown bits as 0
static int VARIANT_NCS_COMPAT
          UUID variant bits described in the IETF Draft MSB order, this is the "Reserved, NCS backward compatibility field" 0 x x with unknown bits as 0
static int VERSION_FIVE
          Version five constant for UUID version five - identical to version 3
static int VERSION_FOUR
          Version four constant for UUID version four of four
static int VERSION_ONE
          Version one constant for UUID version one of four
static int VERSION_THREE
          Version three constant for UUID version three of four
static int VERSION_TWO
          Version two constant for UUID version two of four
static java.lang.String WRONG_VAR_VER_MSG
          Message indicating this is not a version one UUID
 

Field Detail

UUID_BIT_LENGTH

static final int UUID_BIT_LENGTH
Bits in a UUID.

See Also:
Constant Field Values

UUID_BYTE_LENGTH

static final int UUID_BYTE_LENGTH
Number of bytes in a UUID.

See Also:
Constant Field Values

UUID_UNFORMATTED_LENGTH

static final int UUID_UNFORMATTED_LENGTH
Chars in a UUID String.

See Also:
Constant Field Values

UUID_FORMATTED_LENGTH

static final int UUID_FORMATTED_LENGTH
Chars in a UUID String.

See Also:
Constant Field Values

TOKENS_IN_UUID

static final int TOKENS_IN_UUID
Token length of '-' separated tokens.

See Also:
Constant Field Values

TOKEN_LENGTHS

static final int[] TOKEN_LENGTHS
Array to check tokenized UUID's segment lengths


FORMAT_POSITION1

static final int FORMAT_POSITION1
Insertion point 1 for dashes in the string format

See Also:
Constant Field Values

FORMAT_POSITION2

static final int FORMAT_POSITION2
Insertion point 2 for dashes in the string format

See Also:
Constant Field Values

FORMAT_POSITION3

static final int FORMAT_POSITION3
Insertion point 3 for dashes in the string format

See Also:
Constant Field Values

FORMAT_POSITION4

static final int FORMAT_POSITION4
Insertion point 4 for dashes in the string format

See Also:
Constant Field Values

URN_PREFIX

static final java.lang.String URN_PREFIX
The string prefix for a urn UUID identifier.

See Also:
Constant Field Values

VARIANT_NCS_COMPAT

static final int VARIANT_NCS_COMPAT
UUID variant bits described in the IETF Draft MSB order, this is the "Reserved, NCS backward compatibility field" 0 x x with unknown bits as 0

See Also:
Constant Field Values

VARIANT_IETF_DRAFT

static final int VARIANT_IETF_DRAFT
UUID variant bits described in the IETF Draft MSB order, this is the IETF Draft memo variant field 1 0 x with unknown bits as 0

See Also:
Constant Field Values

VARIANT_MS

static final int VARIANT_MS
UUID variant bits described in the IETF Draft MSB order, this is the IETF Draft "Microsoft Corporation" field variant 1 1 0 x with unknown bits as 0

See Also:
Constant Field Values

VARIANT_FUTURE

static final int VARIANT_FUTURE
UUID variant bits described in the IETF Draft MSB order, this is the "Future Reserved variant 1 1 1 x with unknown bits as 0

See Also:
Constant Field Values

VERSION_ONE

static final int VERSION_ONE
Version one constant for UUID version one of four

See Also:
Constant Field Values

VERSION_TWO

static final int VERSION_TWO
Version two constant for UUID version two of four

See Also:
Constant Field Values

VERSION_THREE

static final int VERSION_THREE
Version three constant for UUID version three of four

See Also:
Constant Field Values

VERSION_FOUR

static final int VERSION_FOUR
Version four constant for UUID version four of four

See Also:
Constant Field Values

VERSION_FIVE

static final int VERSION_FIVE
Version five constant for UUID version five - identical to version 3

See Also:
Constant Field Values

MD5_ENCODING

static final java.lang.String MD5_ENCODING
Constants that correspond to the encoding being used, a la http://www.ietf.org/internet-drafts/draft-mealling-uuid-urn-04.txt. Current legal values are "MD5" and "SHA1"

See Also:
Constant Field Values

SHA1_ENCODING

static final java.lang.String SHA1_ENCODING
See Also:
Constant Field Values

WRONG_VAR_VER_MSG

static final java.lang.String WRONG_VAR_VER_MSG
Message indicating this is not a version one UUID

See Also:
Constant Field Values

TIME_LOW_BYTE_LEN

static final int TIME_LOW_BYTE_LEN
Byte length of time low field

See Also:
Constant Field Values

TIME_MID_BYTE_LEN

static final int TIME_MID_BYTE_LEN
Byte length of time low field

See Also:
Constant Field Values

TIME_HI_BYTE_LEN

static final int TIME_HI_BYTE_LEN
Byte length of time low field

See Also:
Constant Field Values

TIME_LOW_TS_POS

static final int TIME_LOW_TS_POS
Timestamp byte[] position of time low field

See Also:
Constant Field Values

TIME_MID_TS_POS

static final int TIME_MID_TS_POS
Timestamp byte[] position mid field

See Also:
Constant Field Values

TIME_HI_TS_POS

static final int TIME_HI_TS_POS
Timestamp byte[] position hi field

See Also:
Constant Field Values

TIME_LOW_START_POS

static final int TIME_LOW_START_POS
uuid array position start of time low field

See Also:
Constant Field Values

TIME_MID_START_POS

static final int TIME_MID_START_POS
uuid array position start of mid field

See Also:
Constant Field Values

TIME_HI_START_POS

static final int TIME_HI_START_POS
uuid array position start of hi field

See Also:
Constant Field Values

TIME_HI_AND_VERSION_BYTE_6

static final short TIME_HI_AND_VERSION_BYTE_6
Byte position of the clock sequence and reserved field

See Also:
Constant Field Values

CLOCK_SEQ_HI_AND_RESERVED_BYTE_8

static final short CLOCK_SEQ_HI_AND_RESERVED_BYTE_8
Byte position of the clock sequence and reserved field

See Also:
Constant Field Values


Copyright 2003-2008 The Apache Software Foundation. All Rights Reserved.