|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.taglib.Util
public class Util
Collection of static utility methods for use within JSP custom tags and customizers
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static java.util.Vector |
addSubTagVector(java.util.Vector parent,
java.lang.String tagName)
Creates a new subtag vector and adds it to the parent vector. |
static void |
addSubTagVector(java.util.Vector parent,
java.util.Vector subVector)
Adds the subVector to the parent vector as teh body vector portion of the vector. |
static java.lang.String |
customTagVectorToString(java.util.Vector data,
java.lang.String indent)
This method takes a custom tag in Vector form and converts it to a custom tag String. |
static java.lang.String |
escapeEmbeddedQuotes(java.lang.String s)
|
static java.lang.String |
escapeEscapeCharacters(java.lang.String s)
|
static java.lang.String |
getCustomTagVectorAttribute(java.util.Vector data,
java.lang.String attribute)
Gets the value of a given attribute from the custom tag vector. |
static java.util.Vector |
getSubTagVector(java.util.Vector parent,
java.lang.String tagName)
Returns the subtag vector with the given custom tag name. |
static boolean |
isCustomTagVectorEmpty(java.util.Vector vector)
Removes a subtag vector with the given name from the given parent vector if the subtag vector exists. |
static void |
removeAllSubTagVectors(java.util.Vector parent,
java.lang.String tagName)
Removes all subtag vectors with the given name from the given parent vector. |
static java.lang.String |
removeSpecialCharsFromBody(java.lang.String body)
Removes all tabs, newlines, and return characters from the start of the string passed in. |
static void |
removeSubTagVector(java.util.Vector parent,
java.lang.String tagName)
Removes a subtag vector with the given name from the given parent vector if the subtag vector exists. |
static java.lang.String |
replaceSpecialChars(java.lang.String s)
|
static void |
setCustomTagVectorAttribute(java.util.Vector data,
java.lang.String attribute,
java.lang.String value)
Sets the value of a given attribute onto the custom tag vector. |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.lang.String customTagVectorToString(java.util.Vector data, java.lang.String indent)
public static java.lang.String replaceSpecialChars(java.lang.String s)
public static java.lang.String escapeEmbeddedQuotes(java.lang.String s)
public static java.lang.String escapeEscapeCharacters(java.lang.String s)
public static java.lang.String removeSpecialCharsFromBody(java.lang.String body)
the
- string in which the tabs ("e\t"e), newlines "e\n"e),
and return characters "e\r"e) are removed frompublic static void setCustomTagVectorAttribute(java.util.Vector data, java.lang.String attribute, java.lang.String value)
public static java.lang.String getCustomTagVectorAttribute(java.util.Vector data, java.lang.String attribute)
public static java.util.Vector getSubTagVector(java.util.Vector parent, java.lang.String tagName)
public static java.util.Vector addSubTagVector(java.util.Vector parent, java.lang.String tagName)
public static void addSubTagVector(java.util.Vector parent, java.util.Vector subVector)
public static void removeSubTagVector(java.util.Vector parent, java.lang.String tagName)
public static void removeAllSubTagVectors(java.util.Vector parent, java.lang.String tagName)
public static boolean isCustomTagVectorEmpty(java.util.Vector vector)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |