Primavera Integration API 7.0

com.primavera.integration.util
Class GUIDConverter

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

public final class GUIDConverter
extends java.lang.Object

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


Method Summary
static java.lang.String convertInternalGUIDToStandardFormat(java.lang.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 java.lang.String convertStandardGUIDToInternalFormat(java.lang.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 java.lang.String convertInternalGUIDToStandardFormat(java.lang.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 java.lang.String convertStandardGUIDToInternalFormat(java.lang.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 7.0

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