|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.testng.reporters.XMLUtils
public final class XMLUtils
Static helpers for XML.
Method Summary | |
---|---|
static void |
appendAttributes(IBuffer result,
Properties attributes)
Appends the attributes to result. |
static String |
escape(String input)
|
static String |
extractComment(String tag,
Properties properties)
|
static String |
xml(String indent,
String name,
String content,
Properties attributes)
Generate tag. |
static void |
xmlClose(IBuffer result,
String indent,
String tag,
String comment)
|
static void |
xmlOpen(IBuffer result,
String indent,
String tag,
Properties attributes)
|
static void |
xmlOpen(IBuffer result,
String indent,
String tag,
Properties attributes,
boolean noNewLine)
|
static void |
xmlOptional(IBuffer result,
String sp,
String elementName,
Boolean value,
Properties attributes)
|
static void |
xmlOptional(IBuffer result,
String sp,
String elementName,
String value,
Properties attributes)
|
static void |
xmlRequired(IBuffer result,
String sp,
String elementName,
String value,
Properties attributes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String xml(String indent, String name, String content, Properties attributes)
name
- name of the tagcontent
- content for this tag (or null)attributes
- tag attributes (or null)public static String extractComment(String tag, Properties properties)
public static void xmlOptional(IBuffer result, String sp, String elementName, Boolean value, Properties attributes)
public static void xmlOptional(IBuffer result, String sp, String elementName, String value, Properties attributes)
public static void xmlRequired(IBuffer result, String sp, String elementName, String value, Properties attributes)
public static void xmlOpen(IBuffer result, String indent, String tag, Properties attributes)
public static void appendAttributes(IBuffer result, Properties attributes)
result
- the buffer to append attributes to.attributes
- the attributes to append (may be null).public static void xmlOpen(IBuffer result, String indent, String tag, Properties attributes, boolean noNewLine)
public static void xmlClose(IBuffer result, String indent, String tag, String comment)
public static String escape(String input)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |