com.ibm.etools.logging.pd.artifacts
Class PD_Utilities

java.lang.Object
  |
  +--com.ibm.etools.logging.pd.artifacts.PD_Utilities

public final class PD_Utilities
extends java.lang.Object


Constructor Summary
PD_Utilities()
           
 
Method Summary
static java.lang.String generateUniqueID()
           
static java.lang.String replaceParentTagName(java.lang.String xmlFragment, java.lang.String newTagName)
          Replaces the existing open and possible close tag names of the parent element in the parameter well-formed XML fragment with the new parameter tag name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PD_Utilities

public PD_Utilities()
Method Detail

generateUniqueID

public static java.lang.String generateUniqueID()

replaceParentTagName

public static java.lang.String replaceParentTagName(java.lang.String xmlFragment,
                                                    java.lang.String newTagName)
                                             throws java.lang.IllegalArgumentException
Replaces the existing open and possible close tag names of the parent element in the parameter well-formed XML fragment with the new parameter tag name.

Parameters:
xmlFragment - the well-formed XML fragment
newTagName - the new tag name
Returns:
the XML fragment with the existing open and possible close tag names with the new parameter tag name
java.lang.IllegalArgumentException