|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.violations.generate.XMLUtil
public final class XMLUtil
Some helper methods for encoding xml and html strings.
| Method Summary | |
|---|---|
static java.lang.String |
escapeAttribute(java.lang.String str)
Encode an attribute value. |
static java.lang.String |
escapeContent(java.lang.String str)
XML encode a string. |
static java.lang.String |
escapeHTMLContent(java.lang.String tabIcon,
java.lang.String str)
Convert a string to html content, Same as the xml version except that spaces and tabs are converted. |
static java.lang.String |
toAttribute(java.lang.String name,
int value)
Return an attribute setting. |
static java.lang.String |
toAttribute(java.lang.String name,
java.lang.String value)
Return an attribute setting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String escapeHTMLContent(java.lang.String tabIcon,
java.lang.String str)
tabIcon - the icon to represent a tag.str - the string to convert.
public static java.lang.String escapeContent(java.lang.String str)
str - the string to encode.
public static java.lang.String escapeAttribute(java.lang.String str)
str - the string to convert.
public static java.lang.String toAttribute(java.lang.String name,
java.lang.String value)
name - the name of the attribute.value - the value of the attribute.
public static java.lang.String toAttribute(java.lang.String name,
int value)
name - the name of the attribute.value - the value of the attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||