Primavera Integration API 8.0

com.primavera.integration.util
Class GUIDConverter

java.lang.Object
  extended by com.primavera.integration.util.GUIDConverter

public final class GUIDConverter
extends Object

Helper class for converting GUIDs from internal format to standard format, and vice-versa.


Method Summary
static String convertInternalGUIDToStandardFormat(String sInternalGUID)
          Converts a GUID from internal base 64 format to standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric character
static String convertStandardGUIDToInternalFormat(String sStandardGUID)
          Converts a GUID to internal base 64 format from standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric character
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertInternalGUIDToStandardFormat

public static String convertInternalGUIDToStandardFormat(String sInternalGUID)
                                                  throws InvalidValueException
Converts a GUID from internal base 64 format to standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric character

Parameters:
sInternalGUID - GUID in internal base 64 format
Returns:
String GUID in standard format
Throws:
InvalidValueException - if the GUID was not in the correct format

convertStandardGUIDToInternalFormat

public static String convertStandardGUIDToInternalFormat(String sStandardGUID)
                                                  throws InvalidValueException
Converts a GUID to internal base 64 format from standard format of {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, where each x is an alphanumeric character

Parameters:
sStandardGUID - GUID in standard format
Returns:
String GUID in internal base 64 format
Throws:
InvalidValueException - if the GUID was not in the correct format

Primavera Integration API 8.0

Copyright © 2003, 2010, Oracle and/or its affiliates. All rights reserved.