org.dcm4che2.util
Class UIDUtils

java.lang.Object
  extended by org.dcm4che2.util.UIDUtils

public class UIDUtils
extends java.lang.Object

Author:
gunter

Field Summary
static java.lang.String UUID_ROOT
          UID root for UUIDs (Universally Unique Identifiers) generated in accordance with Rec.
 
Constructor Summary
UIDUtils()
           
 
Method Summary
static java.lang.String createUID()
           
static java.lang.String createUID(java.lang.String root)
           
static java.lang.String getRoot()
           
static boolean isAcceptLeadingZero()
           
static boolean isValidUID(java.lang.String uid)
           
static boolean isValidUID(java.lang.String uid, boolean acceptLeadingZero)
           
static void setAcceptLeadingZero(boolean acceptLeadingZero)
           
static void setRoot(java.lang.String root)
           
static void verifyUID(java.lang.String uid)
           
static void verifyUID(java.lang.String uid, boolean acceptLeadingZero)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UUID_ROOT

public static final java.lang.String UUID_ROOT
UID root for UUIDs (Universally Unique Identifiers) generated in accordance with Rec. ITU-T X.667 | ISO/IEC 9834-8. Used by default.

See Also:
OID repository {joint-iso-itu-t(2) uuid(25)}, Constant Field Values
Constructor Detail

UIDUtils

public UIDUtils()
Method Detail

isAcceptLeadingZero

public static final boolean isAcceptLeadingZero()

setAcceptLeadingZero

public static final void setAcceptLeadingZero(boolean acceptLeadingZero)

setRoot

public static void setRoot(java.lang.String root)

getRoot

public static java.lang.String getRoot()

verifyUID

public static void verifyUID(java.lang.String uid)

verifyUID

public static void verifyUID(java.lang.String uid,
                             boolean acceptLeadingZero)

isValidUID

public static boolean isValidUID(java.lang.String uid)

isValidUID

public static boolean isValidUID(java.lang.String uid,
                                 boolean acceptLeadingZero)

createUID

public static java.lang.String createUID()

createUID

public static java.lang.String createUID(java.lang.String root)


Copyright © 2011 dcm4che. All Rights Reserved.