|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.CadxHtmlUtil
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 |
public CadxHtmlUtil()
Method Detail |
public static String createAttributeValuePair(String attributeName, String attributeValue)
public static String createUniqueTagIDValue(String attributeName, String subSystemName)
public static String createUniqueTagIDValue(String attributeName, Class processorClass)
public static String getSubSystemName(Class processorClass)
public static String createTagIDValuePair(String nameAttribute, String subSystemName)
public static String createTagIDValuePair(String nameAttribute, Class processorClass)
public static String fixStringForJavaScript(String value)
public static String replaceSplCharsInID(String uniqueId)
public static String replaceMultiCharSplCharsInID(String uniqueId)
public static String replaceSubString(String uniqueId, String oldToken, String newToken, int fromIndex)
public static String replaceSingleCharSplCharsInID(String uniqueId)
public static String escape(String str, String delim)
public static String escapeAndConvertUnicodeToAscii(String srcStr)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |