org.apache.jackrabbit.uuid
Interface Constants

All Known Implementing Classes:
UUID, VersionFourGenerator

public interface Constants

Constant values commonly needed in the uuid classes.

Copied from the Jakarta Commons-Id project

todo remove and use official commons-id release as soon as it is available


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 char[] hexDigits
          XXX added by stefan@apache.org: hexdigits for converting numerics to hex
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 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_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 String WRONG_VAR_VER_MSG
          Message indicating this is not a version one UUID
 

Field Detail

UUID_BIT_LENGTH

public static final int UUID_BIT_LENGTH
Bits in a UUID.

See Also:
Constant Field Values

UUID_BYTE_LENGTH

public static final int UUID_BYTE_LENGTH
Number of bytes in a UUID.

See Also:
Constant Field Values

UUID_UNFORMATTED_LENGTH

public static final int UUID_UNFORMATTED_LENGTH
Chars in a UUID String.

See Also:
Constant Field Values

UUID_FORMATTED_LENGTH

public static final int UUID_FORMATTED_LENGTH
Chars in a UUID String.

See Also:
Constant Field Values

TOKENS_IN_UUID

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

See Also:
Constant Field Values

TOKEN_LENGTHS

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


FORMAT_POSITION1

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

See Also:
Constant Field Values

FORMAT_POSITION2

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

See Also:
Constant Field Values

FORMAT_POSITION3

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

See Also:
Constant Field Values

FORMAT_POSITION4

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

See Also:
Constant Field Values

URN_PREFIX

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

See Also:
Constant Field Values

VARIANT_NCS_COMPAT

public 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

public 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

public 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

public 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

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

See Also:
Constant Field Values

VERSION_TWO

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

See Also:
Constant Field Values

VERSION_THREE

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

See Also:
Constant Field Values

VERSION_FOUR

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

See Also:
Constant Field Values

WRONG_VAR_VER_MSG

public static final String WRONG_VAR_VER_MSG
Message indicating this is not a version one UUID

See Also:
Constant Field Values

TIME_LOW_BYTE_LEN

public static final int TIME_LOW_BYTE_LEN
Byte length of time low field

See Also:
Constant Field Values

TIME_MID_BYTE_LEN

public static final int TIME_MID_BYTE_LEN
Byte length of time low field

See Also:
Constant Field Values

TIME_HI_BYTE_LEN

public static final int TIME_HI_BYTE_LEN
Byte length of time low field

See Also:
Constant Field Values

TIME_LOW_TS_POS

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

See Also:
Constant Field Values

TIME_MID_TS_POS

public static final int TIME_MID_TS_POS
Timestamp byte[] position mid field

See Also:
Constant Field Values

TIME_HI_TS_POS

public static final int TIME_HI_TS_POS
Timestamp byte[] position hi field

See Also:
Constant Field Values

TIME_LOW_START_POS

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

See Also:
Constant Field Values

TIME_MID_START_POS

public static final int TIME_MID_START_POS
uuid array position start of mid field

See Also:
Constant Field Values

TIME_HI_START_POS

public 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

public 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

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

See Also:
Constant Field Values

hexDigits

public static final char[] hexDigits
XXX added by stefan@apache.org: hexdigits for converting numerics to hex



Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.