com.ptc.windchill.cadx.common
Class CadxHtmlUtil

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.CadxHtmlUtil

public class CadxHtmlUtil
extends Object

CadxHtmlUtil contains those methods needed to generate HTML pages. Note that ideally these methods should belong to the wt.htmlutil.HtmlUtil class. However, to avoid numerous submission to Windchill vob, for now, the convenience methods are being put here.

The methods in this class are wrappers to methods found in wt.htmlutil.HtmlUtil.

NOTE: The escape methods is not currently a wrapper, but plans are to move this method to HtmlUtil.


Constructor Summary
CadxHtmlUtil()
          Deprecated.  
 
Method Summary
static String createAttributeValuePair(String attributeName, String attributeValue)
          Deprecated. For the specified attribute/value pair, return back the "attribute=value" kind of string.
static String createTagIDValuePair(String nameAttribute, Class processorClass)
          Deprecated. For the specified tag attribute & the specified class, create the unique tag id key/value pair for the tag.
static String createTagIDValuePair(String nameAttribute, String subSystemName)
          Deprecated. For the specified tag attribute & the specified sub-system name, create the unique tag id key/value pair for the tag.
static String createUniqueTagIDValue(String attributeName, Class processorClass)
          Deprecated. For the specified processorClass determine the sub-system name, create an unique id value string using the attribute name in the following format: sub-system-name + "_" + attributeName For example, if the classname of the processorClass is "com.ptc.windchill.cadx.newcaddoc.NewCadDocTemplateProcessor" and the attributeName is "CADDocType", the uniqueId would be ""newcaddoc_CADDocType"
static String createUniqueTagIDValue(String attributeName, String subSystemName)
          Deprecated. For the specified sub-system name, create an unique id value string using the attribute name in the following format: sub-system-name + "_" + attributeName For example, if the sub-system name is "newcaddoc" and the attributeName is "CADDocType", the uniqueId would be ""newcaddoc_CADDocType"
static String escape(String str, String delim)
          Deprecated.  
static String escapeAndConvertUnicodeToAscii(String srcStr)
          Deprecated.  
static String fixStringForJavaScript(String value)
          Deprecated. For removing special characters e.g &,",>,<,'(single quote) from String before adding string to javascript.
static String getSubSystemName(Class processorClass)
          Deprecated. From the specified class, derive the sub-system name.
static String replaceMultiCharSplCharsInID(String uniqueId)
          Deprecated. Replace special multi characters (such as "_ASC" ) with replacement value (such as "_ASC_")
static String replaceSingleCharSplCharsInID(String uniqueId)
          Deprecated. Replace special single characters (such as '.', ' ') with replacement value
static String replaceSplCharsInID(String uniqueId)
          Deprecated. Replace any special characters in uniqueId with certain replacement values.
static String replaceSubString(String uniqueId, String oldToken, String newToken, int fromIndex)
          Deprecated. Replace the specified multi-char sub-string with the specified replacement string in the specified uniqueId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CadxHtmlUtil

public CadxHtmlUtil()
Deprecated. 
Method Detail

createAttributeValuePair

public static String createAttributeValuePair(String attributeName,
                                              String attributeValue)
Deprecated. 
For the specified attribute/value pair, return back the "attribute=value" kind of string. For example, if the attributeName is "id" and the attributeValue is "newcaddoc_CADDocType", the value returned would be " id="newcaddoc_CADDocType" "


createUniqueTagIDValue

public static String createUniqueTagIDValue(String attributeName,
                                            String subSystemName)
Deprecated. 
For the specified sub-system name, create an unique id value string using the attribute name in the following format: sub-system-name + "_" + attributeName For example, if the sub-system name is "newcaddoc" and the attributeName is "CADDocType", the uniqueId would be ""newcaddoc_CADDocType"


createUniqueTagIDValue

public static String createUniqueTagIDValue(String attributeName,
                                            Class processorClass)
Deprecated. 
For the specified processorClass determine the sub-system name, create an unique id value string using the attribute name in the following format: sub-system-name + "_" + attributeName For example, if the classname of the processorClass is "com.ptc.windchill.cadx.newcaddoc.NewCadDocTemplateProcessor" and the attributeName is "CADDocType", the uniqueId would be ""newcaddoc_CADDocType"


getSubSystemName

public static String getSubSystemName(Class processorClass)
Deprecated. 
From the specified class, derive the sub-system name. For example, if the classname is "com.ptc.windchill.cadx.newcaddoc.NewCadDocTemplateProcessor", the sub-system name would be "newcaddoc". Note that rose generated CLASSNAME static varible could be passed here as CLASSNAME.


createTagIDValuePair

public static String createTagIDValuePair(String nameAttribute,
                                          String subSystemName)
Deprecated. 
For the specified tag attribute & the specified sub-system name, create the unique tag id key/value pair for the tag.


createTagIDValuePair

public static String createTagIDValuePair(String nameAttribute,
                                          Class processorClass)
Deprecated. 
For the specified tag attribute & the specified class, create the unique tag id key/value pair for the tag.


fixStringForJavaScript

public static String fixStringForJavaScript(String value)
Deprecated. 
For removing special characters e.g &,",>,<,'(single quote) from String before adding string to javascript.


replaceSplCharsInID

public static String replaceSplCharsInID(String uniqueId)
Deprecated. 
Replace any special characters in uniqueId with certain replacement values. If these characters are present, it causes issues in the trail processing.


replaceMultiCharSplCharsInID

public static String replaceMultiCharSplCharsInID(String uniqueId)
Deprecated. 
Replace special multi characters (such as "_ASC" ) with replacement value (such as "_ASC_")


replaceSubString

public static String replaceSubString(String uniqueId,
                                      String oldToken,
                                      String newToken,
                                      int fromIndex)
Deprecated. 
Replace the specified multi-char sub-string with the specified replacement string in the specified uniqueId


replaceSingleCharSplCharsInID

public static String replaceSingleCharSplCharsInID(String uniqueId)
Deprecated. 
Replace special single characters (such as '.', ' ') with replacement value


escape

public static String escape(String str,
                            String delim)
Deprecated. 

escapeAndConvertUnicodeToAscii

public static String escapeAndConvertUnicodeToAscii(String srcStr)
Deprecated.