Esri Geoportal Server
1.0

com.esri.gpt.framework.util
Class UuidUtil

java.lang.Object
  extended by com.esri.gpt.framework.util.UuidUtil

public class UuidUtil
extends Object

Utility functions associated with globally unique identifiers.


Field Summary
static String UUID_PATTERN
          UUID pattern
 
Method Summary
static String addCurlies(String uuid)
          Adds curly braces {} to a uuid.
static Pattern createRegexPattern()
          Creates regular expression pattern.
static Pattern createRegexPattern(int flags)
          Creates regular expression pattern.
static boolean isUuid(String uuid)
          Determines if a string is a uuid.
static String makeUuid()
          Makes a new uuid (no braces).
static String makeUuid(boolean withCurlies)
          Makes a new uuid.
static String removeCurlies(String uuid)
          Removes curly braces {} from a uuid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UUID_PATTERN

public static final String UUID_PATTERN
UUID pattern

See Also:
Constant Field Values
Method Detail

addCurlies

public static String addCurlies(String uuid)
Adds curly braces {} to a uuid.

Parameters:
uuid - the uuid to modify
Returns:
the modified uuid

isUuid

public static boolean isUuid(String uuid)
Determines if a string is a uuid.

Parameters:
uuid - the uuid to check
Returns:
true if the string is a uuid

makeUuid

public static String makeUuid()
Makes a new uuid (no braces).

Returns:
the new uuid

makeUuid

public static String makeUuid(boolean withCurlies)
Makes a new uuid.

Parameters:
withCurlies - if true, add curly braces {}
Returns:
the new uuid

removeCurlies

public static String removeCurlies(String uuid)
Removes curly braces {} from a uuid.

Parameters:
uuid - the uuid to modify
Returns:
the modified uuid

createRegexPattern

public static Pattern createRegexPattern()
Creates regular expression pattern.

Returns:
pattern

createRegexPattern

public static Pattern createRegexPattern(int flags)
Creates regular expression pattern.

Parameters:
flags - (see: Pattern.compile(String regex, int flags))
Returns:
pattern

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.